A MIDI Library for .NET

Instrument Enumeration

General MIDI instrument, used in Program Change messages.

public enum Instrument

Remarks

The MIDI protocol defines a Program Change message, which can be used to switch a device among "presets". The General MIDI specification further standardizes those presets into the specific instruments in this enum. General-MIDI-compliant devices will have these particular instruments; non-GM devices may have other instruments.

MIDI instruments are one-indexed in the spec, but they're zero-indexed in code, so we have them zero-indexed here.

This enum has extension methods, such as Name and IsValid, defined in InstrumentExtensionMethods.

Members

Member Name Description
AcousticGrandPianoGeneral MIDI instrument 0 ("Acoustic Grand Piano").
BrightAcousticPianoGeneral MIDI instrument 1 ("Bright Acoustic Piano").
ElectricGrandPianoGeneral MIDI instrument 2 ("Electric Grand Piano").
HonkyTonkPianoGeneral MIDI instrument 3 ("Honky Tonk Piano").
ElectricPiano1General MIDI instrument 4 ("Electric Piano 1").
ElectricPiano2General MIDI instrument 5 ("Electric Piano 2").
HarpsichordGeneral MIDI instrument 6 ("Harpsichord").
ClavinetGeneral MIDI instrument 7 ("Clavinet").
CelestaGeneral MIDI instrument 8 ("Celesta").
GlockenspielGeneral MIDI instrument 9 ("Glockenspiel").
MusicBoxGeneral MIDI instrument 10 ("Music Box").
VibraphoneGeneral MIDI instrument 11 ("Vibraphone").
MarimbaGeneral MIDI instrument 12 ("Marimba").
XylophoneGeneral MIDI instrument 13 ("Xylophone").
TubularBellsGeneral MIDI instrument 14 ("Tubular Bells").
DulcimerGeneral MIDI instrument 15 ("Dulcimer").
DrawbarOrganGeneral MIDI instrument 16 ("Drawbar Organ").
PercussiveOrganGeneral MIDI instrument 17 ("Percussive Organ").
RockOrganGeneral MIDI instrument 18 ("Rock Organ").
ChurchOrganGeneral MIDI instrument 19 ("Church Organ").
ReedOrganGeneral MIDI instrument 20 ("Reed Organ").
AccordionGeneral MIDI instrument 21 ("Accordion").
HarmonicaGeneral MIDI instrument 22 ("Harmonica").
TangoAccordionGeneral MIDI instrument 23 ("Tango Accordion").
AcousticGuitarNylonGeneral MIDI instrument 24 ("Acoustic Guitar (nylon)").
AcousticGuitarSteelGeneral MIDI instrument 25 ("Acoustic Guitar (steel)").
ElectricGuitarJazzGeneral MIDI instrument 26 ("Electric Guitar (jazz)").
ElectricGuitarCleanGeneral MIDI instrument 27 ("Electric Guitar (clean)").
ElectricGuitarMutedGeneral MIDI instrument 28 ("Electric Guitar (muted)").
OverdrivenGuitarGeneral MIDI instrument 29 ("Overdriven Guitar").
DistortionGuitarGeneral MIDI instrument 30 ("Distortion Guitar").
GuitarHarmonicsGeneral MIDI instrument 31 ("Guitar Harmonics").
AcousticBassGeneral MIDI instrument 32 ("Acoustic Bass").
ElectricBassFingerGeneral MIDI instrument 33 ("Electric Bass (finger)").
ElectricBassPickGeneral MIDI instrument 34 ("Electric Bass (pick)").
FretlessBassGeneral MIDI instrument 35 ("Fretless Bass").
SlapBass1General MIDI instrument 36 ("Slap Bass 1").
SlapBass2General MIDI instrument 37 ("Slap Bass 2").
SynthBass1General MIDI instrument 38 ("Synth Bass 1").
SynthBass2General MIDI instrument 39("Synth Bass 2").
ViolinGeneral MIDI instrument 40 ("Violin").
ViolaGeneral MIDI instrument 41 ("Viola").
CelloGeneral MIDI instrument 42 ("Cello").
ContrabassGeneral MIDI instrument 43 ("Contrabass").
TremoloStringsGeneral MIDI instrument 44 ("Tremolo Strings").
PizzicatoStringsGeneral MIDI instrument 45 ("Pizzicato Strings").
OrchestralHarpGeneral MIDI instrument 46 ("Orchestral Harp").
TimpaniGeneral MIDI instrument 47 ("Timpani").
StringEnsemble1General MIDI instrument 48 ("String Ensemble 1").
StringEnsemble2General MIDI instrument 49 ("String Ensemble 2").
SynthStrings1General MIDI instrument 50 ("Synth Strings 1").
SynthStrings2General MIDI instrument 51 ("Synth Strings 2").
ChoirAahsGeneral MIDI instrument 52 ("Choir Aahs").
VoiceOohsGeneral MIDI instrument 53 ("Voice oohs").
SynthVoiceGeneral MIDI instrument 54 ("Synth Voice").
OrchestraHitGeneral MIDI instrument 55 ("Orchestra Hit").
TrumpetGeneral MIDI instrument 56 ("Trumpet").
TromboneGeneral MIDI instrument 57 ("Trombone").
TubaGeneral MIDI instrument 58 ("Tuba").
MutedTrumpetGeneral MIDI instrument 59 ("Muted Trumpet").
FrenchHornGeneral MIDI instrument 60 ("French Horn").
BrassSectionGeneral MIDI instrument 61 ("Brass Section").
SynthBrass1General MIDI instrument 62 ("Synth Brass 1").
SynthBrass2General MIDI instrument 63 ("Synth Brass 2").
SopranoSaxGeneral MIDI instrument 64 ("Soprano Sax").
AltoSaxGeneral MIDI instrument 65 ("Alto Sax").
TenorSaxGeneral MIDI instrument 66 ("Tenor Sax").
BaritoneSaxGeneral MIDI instrument 67 ("Baritone Sax").
OboeGeneral MIDI instrument 68 ("Oboe").
EnglishHornGeneral MIDI instrument 69 ("English Horn").
BassoonGeneral MIDI instrument 70 ("Bassoon").
ClarinetGeneral MIDI instrument 71 ("Clarinet").
PiccoloGeneral MIDI instrument 72 ("Piccolo").
FluteGeneral MIDI instrument 73 ("Flute").
RecorderGeneral MIDI instrument 74 ("Recorder").
PanFluteGeneral MIDI instrument 75 ("PanFlute").
BlownBottleGeneral MIDI instrument 76 ("Blown Bottle").
ShakuhachiGeneral MIDI instrument 77 ("Shakuhachi").
WhistleGeneral MIDI instrument 78 ("Whistle").
OcarinaGeneral MIDI instrument 79 ("Ocarina").
Lead1SquareGeneral MIDI instrument 80 ("Lead 1 (square)").
Lead2SawtoothGeneral MIDI instrument 81 ("Lead 2 (sawtooth)").
Lead3CalliopeGeneral MIDI instrument 82 ("Lead 3 (calliope)").
Lead4ChiffGeneral MIDI instrument 83 ("Lead 4 (chiff)").
Lead5CharangGeneral MIDI instrument 84 ("Lead 5 (charang)").
Lead6VoiceGeneral MIDI instrument 85 ("Lead 6 (voice)").
Lead7FifthsGeneral MIDI instrument 86 ("Lead 7 (fifths)").
Lead8BassPlusLeadGeneral MIDI instrument 87 ("Lead 8 (bass + lead)").
Pad1NewAgeGeneral MIDI instrument 88 ("Pad 1 (new age)").
Pad2WarmGeneral MIDI instrument 89 ("Pad 2 (warm)").
Pad3PolysynthGeneral MIDI instrument 90 ("Pad 3 (polysynth)").
Pad4ChoirGeneral MIDI instrument 91 ("Pad 4 (choir)").
Pad5BowedGeneral MIDI instrument 92 ("Pad 5 (bowed)").
Pad6MetallicGeneral MIDI instrument 93 ("Pad 6 (metallic)").
Pad7HaloGeneral MIDI instrument 94 ("Pad 7 (halo)").
Pad8SweepGeneral MIDI instrument 95 ("Pad 8 (sweep)").
FX1RainGeneral MIDI instrument 96 ("FX 1 (rain)").
FX2SoundtrackGeneral MIDI instrument 97 ("FX 2 (soundtrack)").
FX3CrystalGeneral MIDI instrument 98 ("FX 3 (crystal)").
FX4AtmosphereGeneral MIDI instrument 99 ("FX 4 (atmosphere)").
FX5BrightnessGeneral MIDI instrument 100 ("FX 5 (brightness)").
FX6GoblinsGeneral MIDI instrument 101 ("FX 6 (goblins)").
FX7EchoesGeneral MIDI instrument 102 ("FX 7 (echoes)").
FX8SciFiGeneral MIDI instrument 103 ("FX 8 (sci-fi)").
SitarGeneral MIDI instrument 104 ("Sitar").
BanjoGeneral MIDI instrument 105 ("Banjo").
ShamisenGeneral MIDI instrument 106 ("Shamisen").
KotoGeneral MIDI instrument 107 ("Koto").
KalimbaGeneral MIDI instrument 108 ("Kalimba").
BagpipeGeneral MIDI instrument 109 ("Bagpipe").
FiddleGeneral MIDI instrument 110 ("Fiddle").
ShanaiGeneral MIDI instrument 111 ("Shanai").
TinkleBellGeneral MIDI instrument 112 ("Tinkle Bell").
AgogoGeneral MIDI instrument 113 (Agogo"").
SteelDrumsGeneral MIDI instrument 114 ("Steel Drums").
WoodblockGeneral MIDI instrument 115 ("Woodblock").
TaikoDrumGeneral MIDI instrument 116 ("Taiko Drum").
MelodicTomGeneral MIDI instrument 117 ("Melodic Tom").
SynthDrumGeneral MIDI instrument 118 ("Synth Drum").
ReverseCymbalGeneral MIDI instrument 119 ("Reverse Cymbal").
GuitarFretNoiseGeneral MIDI instrument 120 ("Guitar Fret Noise").
BreathNoiseGeneral MIDI instrument 121 ("Breath Noise").
SeashoreGeneral MIDI instrument 122 ("Seashore").
BirdTweetGeneral MIDI instrument 123 ("Bird Tweet").
TelephoneRingGeneral MIDI instrument 124 ("Telephone Ring").
HelicopterGeneral MIDI instrument 125 ("Helicopter").
ApplauseGeneral MIDI instrument 126 ("Applause").
GunshotGeneral MIDI instrument 127 ("Gunshot").

Requirements

Namespace: Midi

Assembly: Midi (in Midi.dll)

See Also

Midi Namespace