pub enum Instrument {
Show 129 variants
None = -1,
AcousticGrandPiano = 0,
BrightAcousticPiano = 1,
ElectricGrandPiano = 2,
HonkyTonkPiano = 3,
RhodesPiano = 4,
ChorusedPiano = 5,
Harpsichord = 6,
Clavinet = 7,
Celesta = 8,
Glockenspiel = 9,
MusicBox = 10,
Vibraphone = 11,
Marimba = 12,
Xylophone = 13,
TubularBells = 14,
Dulcimer = 15,
HammondOrgan = 16,
PercussiveOrgan = 17,
RockOrgan = 18,
ChurchOrgan = 19,
ReedOrgan = 20,
Accordion = 21,
Harmonica = 22,
TangoAccordion = 23,
NylonGuitar = 24,
SteelGuitar = 25,
JazzElectricGuitar = 26,
CleanElectricGuitar = 27,
MutedElectricGuitar = 28,
OverdrivenGuitar = 29,
DistortionGuitar = 30,
GuitarHarmonics = 31,
AcousticBass = 32,
FingeredElectricBass = 33,
PickedElectricBass = 34,
FretlessBass = 35,
SlapBass1 = 36,
SlapBass2 = 37,
SynthBass1 = 38,
SynthBass2 = 39,
Violin = 40,
Viola = 41,
Cello = 42,
Contrabass = 43,
TremoloStrings = 44,
PizzicatoStrings = 45,
OrchestralHarp = 46,
Timpani = 47,
StringEnsemble1 = 48,
StringEnsemble2 = 49,
SynthStrings1 = 50,
SynthStrings2 = 51,
VoiceAahs = 52,
VoiceOohs = 53,
SynthVoice = 54,
OrchestraHit = 55,
Trumpet = 56,
Trombone = 57,
Tuba = 58,
MutedTrumpet = 59,
FrenchHorn = 60,
BrassSection = 61,
SynthBrass1 = 62,
SynthBrass2 = 63,
SopranoSax = 64,
AltoSax = 65,
TenorSax = 66,
BaritoneSax = 67,
Oboe = 68,
EnglishHorn = 69,
Bassoon = 70,
Clarinet = 71,
Piccolo = 72,
Flute = 73,
Recorder = 74,
PanFlute = 75,
BottleBlow = 76,
Shakuhachi = 77,
Whistle = 78,
Ocarina = 79,
SynthLeadSquare = 80,
SynthLeadSawtooth = 81,
SynthLeadCalliope = 82,
SynthLeadChiffer = 83,
SynthLeadCharang = 84,
SynthLeadVoice = 85,
SynthLeadFifths = 86,
SynthLeadAndBrass = 87,
SynthPadNewAge = 88,
SynthPadWarm = 89,
SynthPadPolysynth = 90,
SynthPadChoir = 91,
SynthPadBowed = 92,
SynthPadMetallic = 93,
SynthPadHalo = 94,
SynthPadSweep = 95,
SynthFXRain = 96,
SynthFXSoundtrack = 97,
SynthFXCrystal = 98,
SynthFXAtmosphere = 99,
SynthFXBrightness = 100,
SynthFXGoblins = 101,
SynthFXEchoes = 102,
SynthFXSciFi = 103,
Sitar = 104,
Banjo = 105,
Shamisen = 106,
Koto = 107,
Kalimba = 108,
Bagpipe = 109,
Fiddle = 110,
Shana = 111,
TinkleBell = 112,
Agogo = 113,
SteelDrums = 114,
Woodblock = 115,
TaikoDlum = 116,
MelodicTom = 117,
SynthDrum = 118,
ReverseCymbal = 119,
GuitarFretNoise = 120,
BreathNoise = 121,
Seashore = 122,
BirdTweet = 123,
TelephoneRing = 124,
Helicopter = 125,
Applause = 126,
Gunshot = 127,
}Expand description
Describes a MIDI instrument and stores valid standard MIDI instrument code
Variants§
None = -1
AcousticGrandPiano = 0
BrightAcousticPiano = 1
ElectricGrandPiano = 2
HonkyTonkPiano = 3
RhodesPiano = 4
ChorusedPiano = 5
Harpsichord = 6
Clavinet = 7
Celesta = 8
Glockenspiel = 9
MusicBox = 10
Vibraphone = 11
Marimba = 12
Xylophone = 13
TubularBells = 14
Dulcimer = 15
HammondOrgan = 16
PercussiveOrgan = 17
RockOrgan = 18
ChurchOrgan = 19
ReedOrgan = 20
Accordion = 21
Harmonica = 22
TangoAccordion = 23
NylonGuitar = 24
SteelGuitar = 25
JazzElectricGuitar = 26
CleanElectricGuitar = 27
MutedElectricGuitar = 28
OverdrivenGuitar = 29
DistortionGuitar = 30
GuitarHarmonics = 31
AcousticBass = 32
FingeredElectricBass = 33
PickedElectricBass = 34
FretlessBass = 35
SlapBass1 = 36
SlapBass2 = 37
SynthBass1 = 38
SynthBass2 = 39
Violin = 40
Viola = 41
Cello = 42
Contrabass = 43
TremoloStrings = 44
PizzicatoStrings = 45
OrchestralHarp = 46
Timpani = 47
StringEnsemble1 = 48
StringEnsemble2 = 49
SynthStrings1 = 50
SynthStrings2 = 51
VoiceAahs = 52
VoiceOohs = 53
SynthVoice = 54
OrchestraHit = 55
Trumpet = 56
Trombone = 57
Tuba = 58
MutedTrumpet = 59
FrenchHorn = 60
BrassSection = 61
SynthBrass1 = 62
SynthBrass2 = 63
SopranoSax = 64
AltoSax = 65
TenorSax = 66
BaritoneSax = 67
Oboe = 68
EnglishHorn = 69
Bassoon = 70
Clarinet = 71
Piccolo = 72
Flute = 73
Recorder = 74
PanFlute = 75
BottleBlow = 76
Shakuhachi = 77
Whistle = 78
Ocarina = 79
SynthLeadSquare = 80
SynthLeadSawtooth = 81
SynthLeadCalliope = 82
SynthLeadChiffer = 83
SynthLeadCharang = 84
SynthLeadVoice = 85
SynthLeadFifths = 86
SynthLeadAndBrass = 87
SynthPadNewAge = 88
SynthPadWarm = 89
SynthPadPolysynth = 90
SynthPadChoir = 91
SynthPadBowed = 92
SynthPadMetallic = 93
SynthPadHalo = 94
SynthPadSweep = 95
SynthFXRain = 96
SynthFXSoundtrack = 97
SynthFXCrystal = 98
SynthFXAtmosphere = 99
SynthFXBrightness = 100
SynthFXGoblins = 101
SynthFXEchoes = 102
SynthFXSciFi = 103
Sitar = 104
Banjo = 105
Shamisen = 106
Koto = 107
Kalimba = 108
Bagpipe = 109
Fiddle = 110
Shana = 111
TinkleBell = 112
Agogo = 113
SteelDrums = 114
Woodblock = 115
TaikoDlum = 116
MelodicTom = 117
SynthDrum = 118
ReverseCymbal = 119
GuitarFretNoise = 120
BreathNoise = 121
Seashore = 122
BirdTweet = 123
TelephoneRing = 124
Helicopter = 125
Applause = 126
Gunshot = 127
Trait Implementations§
Source§impl Clone for Instrument
impl Clone for Instrument
Source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instrument
impl Debug for Instrument
Source§impl Default for Instrument
impl Default for Instrument
Source§fn default() -> Instrument
fn default() -> Instrument
Returns the “default value” for a type. Read more
Source§impl Hash for Instrument
impl Hash for Instrument
Source§impl PartialEq for Instrument
impl PartialEq for Instrument
impl Copy for Instrument
impl Eq for Instrument
impl StructuralPartialEq for Instrument
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnwindSafe for Instrument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more