[Scummvm-devel] Music support
J.Brown (Ender/Amigo)
ender at enderboi.com
Wed Nov 14 10:58:04 CET 2001
> If anyone knows how to translate Roland MT-32 instruments to General Midi
> instruments, I would be glad to know how.
There's no perfect mapping, but I've been pretty happy with Exults
conversion (From Exult's audio/xmidi.cc file (exult.sourceforge.net)):
// This is a default set of patches to convert from MT32 to GM
// The index is the MT32 Patch nubmer and the value is the GM Patch
// This is only suitable for music that doesn'tdo timbre changes
// XMIDIs that contain Timbre changes will not convert properly
const char XMIDI::mt32asgm[128] = {
0, // 0 Piano 1
1, // 1 Piano 2
2, // 2 Piano 3 (synth)
4, // 3 EPiano 1
4, // 4 EPiano 2
5, // 5 EPiano 3
5, // 6 EPiano 4
3, // 7 Honkytonk
16, // 8 Organ 1
17, // 9 Organ 2
18, // 10 Organ 3
16, // 11 Organ 4
19, // 12 Pipe Organ 1
19, // 13 Pipe Organ 2
19, // 14 Pipe Organ 3
21, // 15 Accordion
6, // 16 Harpsichord 1
6, // 17 Harpsichord 2
6, // 18 Harpsichord 3
7, // 19 Clavinet 1
7, // 20 Clavinet 2
7, // 21 Clavinet 3
8, // 22 Celesta 1
8, // 23 Celesta 2
62, // 24 Synthbrass 1 (62)
63, // 25 Synthbrass 2 (63)
62, // 26 Synthbrass 3 Bank 8
63, // 27 Synthbrass 4 Bank 8
38, // 28 Synthbass 1
39, // 29 Synthbass 2
38, // 30 Synthbass 3 Bank 8
39, // 31 Synthbass 4 Bank 8
88, // 32 Fantasy
90, // 33 Harmonic Pan - No equiv closest is polysynth(90) :(
52, // 34 Choral ?? Currently set to SynthVox(54). Should it be ChoirAhhs(52)???
92, // 35 Glass
97, // 36 Soundtrack
99, // 37 Atmosphere
14, // 38 Warmbell, sounds kind of like crystal(98) perhaps Tubular Bells(14) would be better. It is!
54, // 39 FunnyVox, sounds alot like Bagpipe(109) and Shania(111)
98, // 40 EchoBell, no real equiv, sounds like Crystal(98)
96, // 41 IceRain
68, // 42 Oboe 2001, no equiv, just patching it to normal oboe(68)
95, // 43 EchoPans, no equiv, setting to SweepPad
81, // 44 DoctorSolo Bank 8
87, // 45 SchoolDaze, no real equiv
112, // 46 Bell Singer
80, // 47 SquareWave
48, // 48 Strings 1
48, // 49 Strings 2 - should be 49
44, // 50 Strings 3 (Synth) - Experimental set to Tremollo Strings - should be 50
45, // 51 Pizzicato Strings
40, // 52 Violin 1
40, // 53 Violin 2 ? Viola
42, // 54 Cello 1
42, // 55 Cello 2
43, // 56 Contrabass
46, // 57 Harp 1
46, // 58 Harp 2
24, // 59 Guitar 1 (Nylon)
25, // 60 Guitar 2 (Steel)
26, // 61 Elec Guitar 1
27, // 62 Elec Guitar 2
104, // 63 Sitar
32, // 64 Acou Bass 1
32, // 65 Acou Bass 2
33, // 66 Elec Bass 1
34, // 67 Elec Bass 2
36, // 68 Slap Bass 1
37, // 69 Slap Bass 2
35, // 70 Fretless Bass 1
35, // 71 Fretless Bass 2
73, // 72 Flute 1
73, // 73 Flute 2
72, // 74 Piccolo 1
72, // 75 Piccolo 2
74, // 76 Recorder
75, // 77 Pan Pipes
64, // 78 Sax 1
65, // 79 Sax 2
66, // 80 Sax 3
67, // 81 Sax 4
71, // 82 Clarinet 1
71, // 83 Clarinet 2
68, // 84 Oboe
69, // 85 English Horn (Cor Anglais)
70, // 86 Bassoon
22, // 87 Harmonica
56, // 88 Trumpet 1
56, // 89 Trumpet 2
57, // 90 Trombone 1
57, // 91 Trombone 2
60, // 92 French Horn 1
60, // 93 French Horn 2
58, // 94 Tuba
61, // 95 Brass Section 1
61, // 96 Brass Section 2
11, // 97 Vibes 1
11, // 98 Vibes 2
99, // 99 Syn Mallet Bank 1
112, // 100 WindBell no real equiv Set to TinkleBell(112)
9, // 101 Glockenspiel
14, // 102 Tubular Bells
13, // 103 Xylophone
12, // 104 Marimba
107, // 105 Koto
111, // 106 Sho?? set to Shanai(111)
77, // 107 Shakauhachi
78, // 108 Whistle 1
78, // 109 Whistle 2
76, // 110 Bottle Blow
76, // 111 Breathpipe no real equiv set to bottle blow(76)
47, // 112 Timpani
117, // 113 Melodic Tom
116, // 114 Deap Snare no equiv, set to Taiko(116)
118, // 115 Electric Perc 1
118, // 116 Electric Perc 2
116, // 117 Taiko
115, // 118 Taiko Rim, no real equiv, set to Woodblock(115)
119, // 119 Cymbal, no real equiv, set to reverse cymbal(119)
115, // 120 Castanets, no real equiv, in GM set to Woodblock(115)
112, // 121 Triangle, no real equiv, set to TinkleBell(112)
55, // 122 Orchestral Hit
124, // 123 Telephone
123, // 124 BirdTweet
94, // 125 Big Notes Pad no equiv, set to halo pad (94)
98, // 126 Water Bell set to Crystal Pad(98)
121 // 127 Jungle Tune set to Breath Noise
};
More information about the Scummvm-devel
mailing list