Midi -> VGM Converter - YM2413 --------------------- by Valley Bell This small tool converts standard MIDI files (.mid) to Video Game Music files (.vgm). The vgms will use the OPLL chip (YM2413). Supported are channels 1-6 and Channels 7-9 (non-rhythm mode) or Channel 10 (rhythm mode). As the OPLL chip supports 1 custom instrument, you can import one. You have serval choices how to describe you instrument: - OPLL Registers (00 01 02 .. 07) - useful if you want to copy an instrument from another OPLL vgm file - OPL Registers (20 40 60 .. C0) - some DOS programs use this order (e.g. LAA files) - OPL Registers (20 23 40 .. C0) - more common than the one above (used in CMF files) OPL registers will be converted to OPLL registers. Instrument Conversion Table --------------------------- Num GM Instrument Num OPLL Instrument -------------------------------------------------------- 0 Acoustic Grand Piano 0x3 Piano 1 Bright Acoustic Piano 0x3 Piano 2 Electric Grand Piano 0x3 Piano 3 Honky Tonk Piano 0x3 Piano 6 Harpsichord 0xB Harpsichord 11 Vibraphone 0xC Vibraphone 16 Draw Organ 0x8 Organ 17 Percussive Organ 0x8 Organ 18 Rock Organ 0x8 Organ 19 Church Organ 0x8 Organ 24 Acoustic Guitar (Nylon) 0x2 Guitar 25 Acoustic Guitar (Steel) 0x2 Guitar 26 Electric Guitar (Jazz) 0x2 Guitar 27 Electric Guitar (Clean) 0x2 Guitar 28 Electric Guitar (Muted) 0x2 Guitar 29 Overdriven Guitar 0x2 Guitar 30 Distortion Guitar 0x2 Guitar 32 Acoustic Bass 0xE Acoustic Bass 33 Electric Bass (Finger) 0xF Electric Bass 34 Electric Bass (Pick) 0xF Electric Bass 35 Fretless Bass 0xF Electric Bass 38 Synth Bass 1 0xD Synth Bass 39 Synth Bass 2 0xD Synth Bass 40 Violin 0x1 Violin 41 Viola 0x1 Violin 48 String Ensemble 1 0x1 Violin 49 String Ensemble 2 0x1 Violin 50 Synth Strings 1 0x1 Violin 51 Synth Strings 2 0x1 Violin 56 Trumpet 0x7 Trumpet 57 Trombone 0x7 Trumpet 60 French Horn 0x9 Horn 61 Brass Section 0x7 Trumpet 68 Oboe 0x6 Oboe 71 Clarinet 0x5 Clarinet 72 Piccolo 0x4 Flute 73 Flute 0x4 Flute 74 Recorder 0x4 Flute 75 Pan Flute 0x4 Flute 80 Lead 1 (Square) 0xA Synthesizer 81 Lead 2 (Sawtooth) 0xA Synthesizer 87 Lead 8 (Bass & Lead) 0xA Synthesizer 90 Pad 3 (Polysynth) 0xA Synthesizer All GM Instruments that are not on the list will be converted to 0x0 User Instrument. Notes: - Use the controller 0x67 to turn Rhythm Mode On/Off whithin the MIDI file. (CMF files use this one) - The MIDI should not have more than one note playing on the same channel at the same time. (exception: Drum Channel 10) - The OPLL Synth Bass sounds awful when at octave 2 (and a bass usually plays notes between octave 2 and 4 :/ ).