Class Instrument

Description

Enumeration representing each of the 128 MIDI instruments

  • copyright: © 2009 Tommy Montgomery <http://phpmidiparser.com/>
  • since: 1.0

Located in /Util/Instrument.php (line 22)


	
			
Class Constant Summary
 Accordion = 21
 Agogo = 113
 Applause = 126
 Bagpipe = 109
 Banjo = 105
 Bassoon = 70
 BirdSong = 123
 BottleBlow = 76
 BreathNoise = 121
 Celesta = 8
 Cello = 42
 ChiffSynth = 83
 ChoirAahs = 52
 ChoirOohs = 53
 Clarinet = 71
 CymbalHiHat = 119
 Drum = 47
 Dulcimer = 15
 Fiddle = 110
 FifthSynth = 86
 Flute = 73
 Gunshot = 127
 Harmonica = 22
 Helicopter = 125
 HonkyTonk = 3
 Horn = 60
 Kalimba = 108
 Koto = 107
 Marimba = 12
 MelodicTom = 117
 MusicBox = 10
 Oboe = 68
 Ocarina = 79
 PanPipes = 75
 Piano = 1
 Recorder = 74
 ReedOrgan = 20
 RockOrgan = 18
 Seashore = 122
 Shakuhachi = 77
 Shamisen = 106
 Shanai = 111
 Sitar = 104
 SlapBass1 = 36
 SlapBass2 = 37
 SteelDrum = 114
 Taikodrum = 116
 TinkleBell = 112
 Trombone = 57
 Trumpet = 56
 Tuba = 58
 Vibraphone = 11
 Viola = 41
 Violin = 40
 VoiceSynth = 85
 Whistle = 78
 Woodblock = 115
 Xylophone = 13
Variable Summary
static mixed $instrumentMap
Method Summary
static string getInstrumentName (int $instrument)
Variables
static mixed $instrumentMap = array(
self::ConcertGrand => 'Concert Grand',
self::Piano => 'Piano',
self::ElectricPiano => 'Electric Piano',
self::HonkyTonk => 'Honky Tonk',
self::FenderRhodesElectricPiano => 'Fender Rhodes Electric Piano',
self::PianoWithChorus => 'Piano with Chorus',
self::Harpsichord => 'Harpsichord',
self::HohnerClavinetD6 => 'Hohner Clavinet D6',
self::Celesta => 'Celesta',
self::Glockenspiel => 'Glockenspiel',
self::MusicBox => 'Music Box',
self::Vibraphone => 'Vibraphone',
self::Marimba => 'Marimba',
self::Xylophone => 'Xylophone',
self::TubularBells => 'Tubular Bells',
self::Dulcimer => 'Dulcimer',
self::HammondOrgan => 'Hammond Organ',
self::PercussiveOrgan => 'Percussive Organ',
self::RockOrgan => 'Rock Organ',
self::ChurchOrgan => 'Church Organ',
self::ReedOrgan => 'Reed Organ',
self::Accordion => 'Accordion',
self::Harmonica => 'Harmonica',
self::TangoAccordion => 'Tango Accordion',
self::AcousticGuitarNylon => 'Acoustic Guitar (nylon)',
self::AcousticGuitarSteel => 'Acoustic Guitar (steel)',
self::ElectricGuitarJazz => 'Electric Guitar (jazz)',
self::ElectricGuitarClean => 'Electric Guitar (clean)',
self::ElectricGuitarMuted => 'Electric Guitar (muted)',
self::ElectricGuitarOverdriven => 'Electric Guitar (overdriven)',
self::ElectricGuitarDistorted => 'Electric Guitar (distorted)',
self::GuitarHarmonics => 'Guitar Harmonics',
self::DoubleBassFinger => 'Double Bass (finger)',
self::ElectricBassFinger => 'Electric Bass (finger)',
self::ElectricBassPlectrum => 'Electric Bass (plectrum)',
self::FretlessBass => 'Fretless Bass',
self::SlapBass1 => 'Slap Bass 1',
self::SlapBass2 => 'Slap Bass 2',
self::SynthesizerBass1 => 'Synthesizer Bass 1',
self::SynthesizerBass2 => 'Synthesizer Bass 2',
self::Violin => 'Violin',
self::Viola => 'Viola',
self::Cello => 'Cello',
self::DoubleBassBowed => 'Double Bass (bowed)',
self::ViolinTremolo => 'Violin (tremolo)',
self::ViolinPizzicato => 'Violin (pizzicato)',
self::OrchestraHarp => 'Orchestra Harp',
self::Drum => 'Drum',
self::StringEnsemble1 => 'String Ensemble 1',
self::StringEnsemble2 => 'String Ensemble 2',
self::SynthesizerStrings1 => 'Synthesizer Strings 1',
self::SynthesizerStrings2 => 'Synthesizer Strings 2',
self::ChoirAahs => 'Choir Aahs',
self::ChoirOohs => 'Choir Oohs',
self::SynthesizerVoice => 'Synthesizer Voice',
self::OrchestraComplete => 'Orchestra Complete',
self::Trumpet => 'Trumpet',
self::Trombone => 'Trombone',
self::Tuba => 'Tuba',
self::MutedTrumpet => 'Muted Trumpet',
self::Horn => 'Horn',
self::BrassSection => 'Brass Section',
self::SynthesizerBrass1 => 'Synthesizer Brass 1',
self::SynthesizerBrass2 => 'Synthesizer Brass 2',
self::SopranoSaxophone => 'Soprano Saxophone',
self::AltoSaxophone => 'Alto Saxophone',
self::TenorSaxophone => 'Tenor Saxophone',
self::BaritoneSaxophone => 'Baritone Saxophone',
self::Oboe => 'Oboe',
self::EnglishHorn => 'English Horn',
self::Bassoon => 'Bassoon',
self::Clarinet => 'Clarinet',
self::PiccoloFlute => 'Piccolo Flute',
self::Flute => 'Flute',
self::Recorder => 'Recorder',
self::PanPipes => 'Pan Pipes',
self::BottleBlow => 'Bottle Blow',
self::Shakuhachi => 'Shakuhachi',
self::Whistle => 'Whistle',
self::Ocarina => 'Ocarina',
self::SquareSynth => 'Square (synth)',
self::SawToothSynth => 'Saw Tooth (synth)',
self::CaliopeSynth => 'Caliope (synth)',
self::ChiffSynth => 'Chiff (synth)',
self::CharangSynth => 'Charang (synth)',
self::VoiceSynth => 'Voice (synth)',
self::FifthSynth => 'Fifth (synth)',
self::BrassLeadSynth => 'Brass+Lead (synth)',
self::NewAgeSynthPad => 'New Age (synth pad)',
self::WarmSynthPad => 'Warm (synth pad)',
self::PolysynthSynthPad => 'Polysynth (synth pad)',
self::ChoirSynthPad => 'Choir (synth pad)',
self::BowedSynthPad => 'Bowed (synth pad)',
self::MetallicSynthPad => 'Metallic (synth pad)',
self::HaloSynthPad => 'Halo (synth pad)',
self::SweepSynthPad => 'Sweep (synth pad)',
self::RainSynthEffect => 'Rain (synth effect)',
self::SoundtrackSynthEffect => 'Soundtrack (synth effect)',
self::CrystalSynthEffect => 'Crystal (synth effect)',
self::AtmosphereSynthEffect => 'Atmosphere (synth effect)',
self::BrightnessSynthEffect => 'Brightness (synth effect)',
self::GoblinsSynthEffect => 'Goblins (synth effect)',
self::EchoesSynthEffect => 'Echoes (synth effect)',
self::SciFiSynthEffect => 'Sci Fi (synth effect)',
self::Sitar => 'Sitar',
self::Banjo => 'Banjo',
self::Shamisen => 'Shamisen',
self::Koto => 'Koto',
self::Kalimba => 'Kalimba',
self::Bagpipe => 'Bagpipe',
self::Fiddle => 'Fiddle',
self::Shanai => 'Shanai',
self::TinkleBell => 'Tinkle Bell',
self::Agogo => 'Agogo',
self::SteelDrum => 'Steel Drum',
self::Woodblock => 'Woodblock',
self::Taikodrum => 'Taiko-drum',
self::MelodicTom => 'Melodic Tom',
self::SynthesizedDrum => 'Synthesized Drum',
self::CymbalHiHat => 'Cymbal Hi-Hat',
self::GuitarFretNoise => 'Guitar Fret Noise',
self::BreathNoise => 'Breath Noise',
self::Seashore => 'Seashore',
self::BirdSong => 'Bird Song',
self::TelephoneRing => 'Telephone Ring',
self::Helicopter => 'Helicopter',
self::Applause => 'Applause',
self::Gunshot => 'Gunshot'
)
(line 792)
  • access: private
Methods
static method getInstrumentName (line 932)

Gets the name of the specified MIDI instrument

static string getInstrumentName (int $instrument)
  • int $instrument: One of the \Midi\Instrument constants
Class Constants
Accordion = 21 (line 154)

Accordion (MIDI instrument 21)

AcousticGuitarNylon = 24 (line 172)

Acoustic Guitar (nylon) (MIDI instrument 24)

AcousticGuitarSteel = 25 (line 178)

Acoustic Guitar (steel) (MIDI instrument 25)

Agogo = 113 (line 706)

Agogo (MIDI instrument 113)

AltoSaxophone = 65 (line 418)

Alto Saxophone (MIDI instrument 65)

Applause = 126 (line 784)

Applause (MIDI instrument 126)

AtmosphereSynthEffect = 99 (line 622)

Atmosphere (synth effect) (MIDI instrument 99)

Bagpipe = 109 (line 682)

Bagpipe (MIDI instrument 109)

Banjo = 105 (line 658)

Banjo (MIDI instrument 105)

BaritoneSaxophone = 67 (line 430)

Baritone Saxophone (MIDI instrument 67)

Bassoon = 70 (line 448)

Bassoon (MIDI instrument 70)

BirdSong = 123 (line 766)

Bird Song (MIDI instrument 123)

BottleBlow = 76 (line 484)

Bottle Blow (MIDI instrument 76)

BowedSynthPad = 92 (line 580)

Bowed (synth pad) (MIDI instrument 92)

BrassLeadSynth = 87 (line 550)

Brass+Lead (synth) (MIDI instrument 87)

BrassSection = 61 (line 394)

Brass Section (MIDI instrument 61)

BreathNoise = 121 (line 754)

Breath Noise (MIDI instrument 121)

BrightnessSynthEffect = 100 (line 628)

Brightness (synth effect) (MIDI instrument 100)

CaliopeSynth = 82 (line 520)

Caliope (synth) (MIDI instrument 82)

Celesta = 8 (line 76)

Celesta (MIDI instrument 8)

Cello = 42 (line 280)

Cello (MIDI instrument 42)

CharangSynth = 84 (line 532)

Charang (synth) (MIDI instrument 84)

ChiffSynth = 83 (line 526)

Chiff (synth) (MIDI instrument 83)

ChoirAahs = 52 (line 340)

Choir Aahs (MIDI instrument 52)

ChoirOohs = 53 (line 346)

Choir Oohs (MIDI instrument 53)

ChoirSynthPad = 91 (line 574)

Choir (synth pad) (MIDI instrument 91)

ChurchOrgan = 19 (line 142)

Church Organ (MIDI instrument 19)

Clarinet = 71 (line 454)

Clarinet (MIDI instrument 71)

ConcertGrand = 0 (line 28)

Concert Grand (MIDI instrument 0)

CrystalSynthEffect = 98 (line 616)

Crystal (synth effect) (MIDI instrument 98)

CymbalHiHat = 119 (line 742)

Cymbal Hi-Hat (MIDI instrument 119)

DoubleBassBowed = 43 (line 286)

Double Bass (bowed) (MIDI instrument 43)

DoubleBassFinger = 32 (line 220)

Double Bass (finger) (MIDI instrument 32)

Drum = 47 (line 310)

Drum (MIDI instrument 47)

Dulcimer = 15 (line 118)

Dulcimer (MIDI instrument 15)

EchoesSynthEffect = 102 (line 640)

Echoes (synth effect) (MIDI instrument 102)

ElectricBassFinger = 33 (line 226)

Electric Bass (finger) (MIDI instrument 33)

ElectricBassPlectrum = 34 (line 232)

Electric Bass (plectrum) (MIDI instrument 34)

ElectricGuitarClean = 27 (line 190)

Electric Guitar (clean) (MIDI instrument 27)

ElectricGuitarDistorted = 30 (line 208)

Electric Guitar (distorted) (MIDI instrument 30)

ElectricGuitarJazz = 26 (line 184)

Electric Guitar (jazz) (MIDI instrument 26)

ElectricGuitarMuted = 28 (line 196)

Electric Guitar (muted) (MIDI instrument 28)

ElectricGuitarOverdriven = 29 (line 202)

Electric Guitar (overdriven) (MIDI instrument 29)

ElectricPiano = 2 (line 40)

Electric Piano (MIDI instrument 2)

EnglishHorn = 69 (line 442)

English Horn (MIDI instrument 69)

FenderRhodesElectricPiano = 4 (line 52)

Fender Rhodes Electric Piano (MIDI instrument 4)

Fiddle = 110 (line 688)

Fiddle (MIDI instrument 110)

FifthSynth = 86 (line 544)

Fifth (synth) (MIDI instrument 86)

Flute = 73 (line 466)

Flute (MIDI instrument 73)

FretlessBass = 35 (line 238)

Fretless Bass (MIDI instrument 35)

Glockenspiel = 9 (line 82)

Glockenspiel (MIDI instrument 9)

GoblinsSynthEffect = 101 (line 634)

Goblins (synth effect) (MIDI instrument 101)

GuitarFretNoise = 120 (line 748)

Guitar Fret Noise (MIDI instrument 120)

GuitarHarmonics = 31 (line 214)

Guitar Harmonics (MIDI instrument 31)

Gunshot = 127 (line 790)

Gunshot (MIDI instrument 127)

HaloSynthPad = 94 (line 592)

Halo (synth pad) (MIDI instrument 94)

HammondOrgan = 16 (line 124)

Hammond Organ (MIDI instrument 16)

Harmonica = 22 (line 160)

Harmonica (MIDI instrument 22)

Harpsichord = 6 (line 64)

Harpsichord (MIDI instrument 6)

Helicopter = 125 (line 778)

Helicopter (MIDI instrument 125)

HohnerClavinetD6 = 7 (line 70)

Hohner Clavinet D6 (MIDI instrument 7)

HonkyTonk = 3 (line 46)

Honky Tonk (MIDI instrument 3)

Horn = 60 (line 388)

Horn (MIDI instrument 60)

Kalimba = 108 (line 676)

Kalimba (MIDI instrument 108)

Koto = 107 (line 670)

Koto (MIDI instrument 107)

Marimba = 12 (line 100)

Marimba (MIDI instrument 12)

MelodicTom = 117 (line 730)

Melodic Tom (MIDI instrument 117)

MetallicSynthPad = 93 (line 586)

Metallic (synth pad) (MIDI instrument 93)

MusicBox = 10 (line 88)

Music Box (MIDI instrument 10)

MutedTrumpet = 59 (line 382)

Muted Trumpet (MIDI instrument 59)

NewAgeSynthPad = 88 (line 556)

New Age (synth pad) (MIDI instrument 88)

Oboe = 68 (line 436)

Oboe (MIDI instrument 68)

Ocarina = 79 (line 502)

Ocarina (MIDI instrument 79)

OrchestraComplete = 55 (line 358)

Orchestra Complete (MIDI instrument 55)

OrchestraHarp = 46 (line 304)

Orchestra Harp (MIDI instrument 46)

PanPipes = 75 (line 478)

Pan Pipes (MIDI instrument 75)

PercussiveOrgan = 17 (line 130)

Percussive Organ (MIDI instrument 17)

Piano = 1 (line 34)

Piano (MIDI instrument 1)

PianoWithChorus = 5 (line 58)

Piano with Chorus (MIDI instrument 5)

PiccoloFlute = 72 (line 460)

Piccolo Flute (MIDI instrument 72)

PolysynthSynthPad = 90 (line 568)

Polysynth (synth pad) (MIDI instrument 90)

RainSynthEffect = 96 (line 604)

Rain (synth effect) (MIDI instrument 96)

Recorder = 74 (line 472)

Recorder (MIDI instrument 74)

ReedOrgan = 20 (line 148)

Reed Organ (MIDI instrument 20)

RockOrgan = 18 (line 136)

Rock Organ (MIDI instrument 18)

SawToothSynth = 81 (line 514)

Saw Tooth (synth) (MIDI instrument 81)

SciFiSynthEffect = 103 (line 646)

Sci Fi (synth effect) (MIDI instrument 103)

Seashore = 122 (line 760)

Seashore (MIDI instrument 122)

Shakuhachi = 77 (line 490)

Shakuhachi (MIDI instrument 77)

Shamisen = 106 (line 664)

Shamisen (MIDI instrument 106)

Shanai = 111 (line 694)

Shanai (MIDI instrument 111)

Sitar = 104 (line 652)

Sitar (MIDI instrument 104)

SlapBass1 = 36 (line 244)

Slap Bass 1 (MIDI instrument 36)

SlapBass2 = 37 (line 250)

Slap Bass 2 (MIDI instrument 37)

SopranoSaxophone = 64 (line 412)

Soprano Saxophone (MIDI instrument 64)

SoundtrackSynthEffect = 97 (line 610)

Soundtrack (synth effect) (MIDI instrument 97)

SquareSynth = 80 (line 508)

Square (synth) (MIDI instrument 80)

SteelDrum = 114 (line 712)

Steel Drum (MIDI instrument 114)

StringEnsemble1 = 48 (line 316)

String Ensemble 1 (MIDI instrument 48)

StringEnsemble2 = 49 (line 322)

String Ensemble 2 (MIDI instrument 49)

SweepSynthPad = 95 (line 598)

Sweep (synth pad) (MIDI instrument 95)

SynthesizedDrum = 118 (line 736)

Synthesized Drum (MIDI instrument 118)

SynthesizerBass1 = 38 (line 256)

Synthesizer Bass 1 (MIDI instrument 38)

SynthesizerBass2 = 39 (line 262)

Synthesizer Bass 2 (MIDI instrument 39)

SynthesizerBrass1 = 62 (line 400)

Synthesizer Brass 1 (MIDI instrument 62)

SynthesizerBrass2 = 63 (line 406)

Synthesizer Brass 2 (MIDI instrument 63)

SynthesizerStrings1 = 50 (line 328)

Synthesizer Strings 1 (MIDI instrument 50)

SynthesizerStrings2 = 51 (line 334)

Synthesizer Strings 2 (MIDI instrument 51)

SynthesizerVoice = 54 (line 352)

Synthesizer Voice (MIDI instrument 54)

Taikodrum = 116 (line 724)

Taiko-drum (MIDI instrument 116)

TangoAccordion = 23 (line 166)

Tango Accordion (MIDI instrument 23)

TelephoneRing = 124 (line 772)

Telephone Ring (MIDI instrument 124)

TenorSaxophone = 66 (line 424)

Tenor Saxophone (MIDI instrument 66)

TinkleBell = 112 (line 700)

Tinkle Bell (MIDI instrument 112)

Trombone = 57 (line 370)

Trombone (MIDI instrument 57)

Trumpet = 56 (line 364)

Trumpet (MIDI instrument 56)

Tuba = 58 (line 376)

Tuba (MIDI instrument 58)

TubularBells = 14 (line 112)

Tubular Bells (MIDI instrument 14)

Vibraphone = 11 (line 94)

Vibraphone (MIDI instrument 11)

Viola = 41 (line 274)

Viola (MIDI instrument 41)

Violin = 40 (line 268)

Violin (MIDI instrument 40)

ViolinPizzicato = 45 (line 298)

Violin (pizzicato) (MIDI instrument 45)

ViolinTremolo = 44 (line 292)

Violin (tremolo) (MIDI instrument 44)

VoiceSynth = 85 (line 538)

Voice (synth) (MIDI instrument 85)

WarmSynthPad = 89 (line 562)

Warm (synth pad) (MIDI instrument 89)

Whistle = 78 (line 496)

Whistle (MIDI instrument 78)

Woodblock = 115 (line 718)

Woodblock (MIDI instrument 115)

Xylophone = 13 (line 106)

Xylophone (MIDI instrument 13)

Documentation generated on Sun, 25 Oct 2009 22:38:17 -0700 by phpDocumentor 1.4.3