Permalink
Fetching contributors…
Cannot retrieve contributors at this time
236 lines (217 sloc) 7.51 KB
Musician.MIDI_INSTRUMENT_MAPPING = {
-- Piano
[0] = "dulcimer", -- Acoustic Grand Piano
[1] = "dulcimer", -- Bright Acoustic Piano
[2] = "dulcimer", -- Electric Grand Piano
[3] = "dulcimer", -- Honky-tonk Piano
[4] = "dulcimer", -- Electric Piano 1
[5] = "dulcimer", -- Electric Piano 2
[6] = "harp", -- Harpsichord
[7] = "harp", -- Clavi
-- Chromatic Percussion
[8] = "dulcimer", -- Celesta
[9] = "dulcimer", -- Glockenspiel
[10] = "dulcimer", -- Music Box
[11] = "dulcimer", -- Vibraphone
[12] = "dulcimer", -- Marimba
[13] = "dulcimer", -- Xylophone
[14] = "dulcimer", -- Tubular Bells
[15] = "dulcimer", -- Dulcimer
-- Organ
[16] = "lute", -- Drawbar Organ
[17] = "lute", -- Percussive Organ
[18] = "lute", -- Rock Organ
[19] = "lute", -- Church Organ
[20] = "lute", -- Reed Organ
[21] = "lute", -- Accordion
[22] = "lute", -- Harmonica
[23] = "lute", -- Tango Accordion
-- Guitar
[24] = "lute", -- Acoustic Guitar (nylon)
[25] = "lute", -- Acoustic Guitar (steel)
[26] = "clean-guitar", -- Electric Guitar (jazz)
[27] = "clean-guitar", -- Electric Guitar (clean)
[28] = "clean-guitar", -- Electric Guitar (muted)
[29] = "distorsion-guitar", -- Overdriven Guitar
[30] = "distorsion-guitar", -- Distortion Guitar
[31] = "distorsion-guitar", -- Guitar harmonics
-- Bass
[32] = "lute", -- Acoustic Bass
[33] = "bass-guitar", -- Electric Bass (finger)
[34] = "bass-guitar", -- Electric Bass (pick)
[35] = "bass-guitar", -- Fretless Bass
[36] = "bass-guitar", -- Slap Bass 1
[37] = "bass-guitar", -- Slap Bass 2
[38] = "bass-guitar", -- Synth Bass 1
[39] = "bass-guitar", -- Synth Bass 2
-- Strings
[40] = "fiddle", -- Violin
[41] = "fiddle", -- Viola
[42] = "cello", -- Cello
[43] = "cello", -- Contrabass
[44] = "fiddle", -- Tremolo Strings
[45] = "lute", -- Pizzicato Strings
[46] = "harp", -- Orchestral Harp
[47] = "bodhran-bassdrum-low", -- Timpani
-- Ensemble
[48] = "fiddle", -- String Ensemble 1
[49] = "fiddle", -- String Ensemble 2
[50] = "fiddle", -- SynthStrings 1
[51] = "fiddle", -- SynthStrings 2
[52] = "male-voice", -- Choir Aahs
[53] = "female-voice", -- Voice Oohs
[54] = "female-voice", -- Synth Voice
[55] = "lute", -- Orchestra Hit
-- Brass
[56] = "trumpet", -- Trumpet
[57] = "trombone", -- Trombone
[58] = "trombone", -- Tuba
[59] = "trumpet", -- Muted Trumpet
[60] = "trumpet", -- French Horn
[61] = "trumpet", -- Brass Section
[62] = "trumpet", -- SynthBrass 1
[63] = "trumpet", -- SynthBrass 2
-- Reed
[64] = "clarinet", -- Soprano Sax
[65] = "clarinet", -- Alto Sax
[66] = "bassoon", -- Tenor Sax
[67] = "bassoon", -- Baritone Sax
[68] = "clarinet", -- Oboe
[69] = "clarinet", -- English Horn
[70] = "bassoon", -- Bassoon
[71] = "clarinet", -- Clarinet
-- Pipe
[72] = "recorder", -- Piccolo
[73] = "recorder", -- Flute
[74] = "recorder", -- Recorder
[75] = "recorder", -- Pan Flute
[76] = "recorder", -- Blown Bottle
[77] = "recorder", -- Shakuhachi
[78] = "recorder", -- Whistle
[79] = "recorder", -- Ocarina
-- Synth Lead
[80] = "clarinet", -- Lead 1 (square)
[81] = "fiddle", -- Lead 2 (sawtooth)
[82] = "recorder", -- Lead 3 (calliope)
[83] = "recorder", -- Lead 4 (chiff)
[84] = "recorder", -- Lead 5 (charang)
[85] = "female-voice", -- Lead 6 (voice)
[86] = "fiddle", -- Lead 7 (fifths)
[87] = "lute", -- Lead 8 (bass + lead)
-- Synth Pad
[88] = "lute", -- Pad 1 (new age)
[89] = "fiddle", -- Pad 2 (warm)
[90] = "fiddle", -- Pad 3 (polysynth)
[91] = "fiddle", -- Pad 4 (choir)
[92] = "fiddle", -- Pad 5 (bowed)
[93] = "fiddle", -- Pad 6 (metallic)
[94] = "fiddle", -- Pad 7 (halo)
[95] = "fiddle", -- Pad 8 (sweep)
-- Synth Effects
[96] = "dulcimer", -- FX 1 (rain)
[97] = "dulcimer", -- FX 2 (soundtrack)
[98] = "dulcimer", -- FX 3 (crystal)
[99] = "dulcimer", -- FX 4 (atmosphere)
[100] = "dulcimer", -- FX 5 (brightness)
[101] = "dulcimer", -- FX 6 (goblins)
[102] = "dulcimer", -- FX 7 (echoes)
[103] = "dulcimer", -- FX 8 (sci-fi)
-- Ethnic
[104] = "harp", -- Sitar
[105] = "lute", -- Banjo
[106] = "lute", -- Shamisen
[107] = "harp", -- Koto
[108] = "dulcimer", -- Kalimba
[109] = "bagpipe", -- Bag pipe
[110] = "fiddle", -- Fiddle
[111] = "bagpipe", -- Shanai
-- Percussive
[112] = "lute", -- Tinkle Bell
[113] = "none", -- Agogo
[114] = "dulcimer", -- Steel Drums
[115] = "none", -- Woodblock
[116] = "bodhran-bassdrum-low", -- Taiko Drum
[117] = "bodhran-snare-long-hi", -- Melodic Tom
[118] = "bodhran-snare-long-low", -- Synth Drum
[119] = "none", -- Reverse Cymbal
-- Sound Effects
[120] = "none", -- Guitar Fret Noise
[121] = "none", -- Breath Noise
[122] = "none", -- Seashore
[123] = "none", -- Bird Tweet
[124] = "none", -- Telephone Ring
[125] = "none", -- Helicopter
[126] = "none", -- Applause
[127] = "none", -- Gunshot
-- Percussions
[128] = "percussions",
[129] = "drumkit",
-- None
[-1] = "none",
}
Musician.MIDI_PERCUSSION_MAPPING = {
[27] = "none", -- Laser
[28] = "none", -- Whip
[29] = "bodhran-roll-hi", -- Scratch Push
[30] = "bodhran-roll-low", -- Scratch Pull
[31] = "bodhran-stick-hi", -- Stick Click
[32] = "bodhran-stick-hi", -- Square Click
[33] = "bodhran-stick-med", -- Metronome Click
[34] = "bodhran-stick-low", -- Metronome Bell
[35] = "bodhran-bassdrum-low", -- Acoustic Bass Drum
[36] = "bodhran-bassdrum-hi", -- Bass Drum 1
[37] = "bodhran-stick-low", -- Side Stick
[38] = "bodhran-snare-long-low", -- Acoustic Snare
[39] = "clap", -- Hand Clap
[40] = "bodhran-snare-long-hi", -- Electric Snare
[41] = "bodhran-tom-long-low", -- Low Floor Tom
[42] = "tambourine-hit1", -- Closed Hi Hat
[43] = "bodhran-tom-long-med", -- High Floor Tom
[44] = "tambourine-shake-short", -- Pedal Hi-Hat
[45] = "bodhran-tom-long-hi", -- Low Tom
[46] = "tambourine-shake-long", -- Open Hi-Hat
[47] = "bodhran-tom-short-low", -- Low-Mid Tom
[48] = "bodhran-tom-short-med", -- Hi-Mid Tom
[49] = "tambourine-crash-long1", -- Crash Cymbal 1
[50] = "bodhran-tom-short-hi", -- High Tom
[51] = "tambourine-hit1", -- Ride Cymbal 1
[52] = "tambourine-shake-long", -- Chinese Cymbal
[53] = "tambourine-hit2", -- Ride Bell
[54] = "tambourine-hit2", -- Tambourine
[55] = "tambourine-crash-short-hi", -- Splash Cymbal
[56] = "bodhran-stick-low", -- Cowbell
[57] = "tambourine-crash-long2", -- Crash Cymbal 2
[58] = "bodhran-guiro-hi", -- Vibraslap
[59] = "tambourine-hit2", -- Ride Cymbal 2
[60] = "bodhran-tom-short-hi", -- Hi Bongo
[61] = "bodhran-tom-short-low", -- Low Bongo
[62] = "bodhran-stick-hi", -- Mute Hi Conga
[63] = "bodhran-tom-short-hi", -- Open Hi Conga
[64] = "bodhran-tom-short-low", -- Low Conga
[65] = "bodhran-tom-long-hi", -- High Timbale
[66] = "bodhran-tom-long-med", -- Low Timbale
[67] = "bodhran-stick-hi", -- High Agogo
[68] = "bodhran-stick-low", -- Low Agogo
[69] = "rattle-egg", -- Cabasa
[70] = "rattle-egg", -- Maracas
[71] = "none", -- Short Whistle
[72] = "none", -- Long Whistle
[73] = "bodhran-stick-med", -- Short Guiro
[74] = "bodhran-guiro-low", -- Long Guiro
[75] = "bodhran-stick-med", -- Claves
[76] = "bodhran-stick-hi", -- Hi Wood Block
[77] = "bodhran-stick-low", -- Low Wood Block
[78] = "none", -- Mute Cuica
[79] = "none", -- Open Cuica
[80] = "tambourine-crash-short1", -- Mute Triangle
[81] = "tambourine-crash-short2", -- Open Triangle
[82] = "rattle-egg", -- Shaker
[83] = "tambourine-shake-long", -- Sleigh Bell
[84] = "none", -- Bell Tree
[85] = "clap", -- Castanets
[86] = "bodhran-tom-long-low", -- Surdu Dead Stroke
[87] = "bodhran-tom-short-low", -- Surdu
[91] = "none", -- Snare Drum Rod
[92] = "none", -- Ocean Drum
[93] = "none", -- Snare Drum Brush
}