TIP: Click on subject to list as thread! ANSI
echo: cbm
to: ALL
from: DANIEL ENGLAND
date: 2017-02-28 14:08:00
subject: Re: Converting MIDI files

Heyas!

Okay...  I have the first alpha-ish version of MIDIToSID up on GitHub at
.

Presently, it only supports Format 0 MIDI files and only produces XSID dumps
for PAL XSIDs.  You'll need to convert these dumps using DumpConvert (in
).  It also doesn't output
any SID initialisation 
so you need to add the line "8 24 15" at the very least to the top of the dumps
before you convert them.  I know, that's pretty lame but I haven't gotten to
the converter configuration as yet.  (And yes, I just realised I have a
spelling error in the 
source code).

I did the initial testing with the Comic Bakery MIDI given by SID2MIDI hence,
the patches are set by default to match the Galway engine to a degree.  I have
noticed that the Pitch Wheel controller is not used correctly by SID2MIDI.  I
have done the 
research and I am using it correctly in my code.  I am pretty unhappy with the
SID2MIDI results.  Pulse Width should be two controllers or an RPN (for lo and
hi bits).  Channel Pressure (as my guess) should be used to mimic the sustain
value since 
SID2MIDI seems to not factor it into its patch detection.

MIDIToSID doesn't support playing multiple notes on a voice.  It completely
ignores multiple notes from a single channel and may get into a bind if
multiple notes are played from channels mapped to the same voice.  I intend on
adding legato and "chord" 
modes for handling these things.

I have tested a couple of other MIDIs (from SID2MIDI) and the results are
promising.  I haven't as yet tried a general MIDI file because I'd have to find
one that is appropriate (or implement the modes, above).

I haven't looked at the source code for the SIDWizard MIDI converter as yet. 
Since the MIDIToSID program is fairly extensible, I may add that converter in
the future.

Anyway, that's enough for now.


Daniel.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.