Enum rust_music::Instrument
source · pub enum Instrument {
Show 129 variants
None,
AcousticGrandPiano,
BrightAcousticPiano,
ElectricGrandPiano,
HonkyTonkPiano,
RhodesPiano,
ChorusedPiano,
Harpsichord,
Clavinet,
Celesta,
Glockenspiel,
MusicBox,
Vibraphone,
Marimba,
Xylophone,
TubularBells,
Dulcimer,
HammondOrgan,
PercussiveOrgan,
RockOrgan,
ChurchOrgan,
ReedOrgan,
Accordion,
Harmonica,
TangoAccordion,
NylonGuitar,
SteelGuitar,
JazzElectricGuitar,
CleanElectricGuitar,
MutedElectricGuitar,
OverdrivenGuitar,
DistortionGuitar,
GuitarHarmonics,
AcousticBass,
FingeredElectricBass,
PickedElectricBass,
FretlessBass,
SlapBass1,
SlapBass2,
SynthBass1,
SynthBass2,
Violin,
Viola,
Cello,
Contrabass,
TremoloStrings,
PizzicatoStrings,
OrchestralHarp,
Timpani,
StringEnsemble1,
StringEnsemble2,
SynthStrings1,
SynthStrings2,
VoiceAahs,
VoiceOohs,
SynthVoice,
OrchestraHit,
Trumpet,
Trombone,
Tuba,
MutedTrumpet,
FrenchHorn,
BrassSection,
SynthBrass1,
SynthBrass2,
SopranoSax,
AltoSax,
TenorSax,
BaritoneSax,
Oboe,
EnglishHorn,
Bassoon,
Clarinet,
Piccolo,
Flute,
Recorder,
PanFlute,
BottleBlow,
Shakuhachi,
Whistle,
Ocarina,
SynthLeadSquare,
SynthLeadSawtooth,
SynthLeadCalliope,
SynthLeadChiffer,
SynthLeadCharang,
SynthLeadVoice,
SynthLeadFifths,
SynthLeadAndBrass,
SynthPadNewAge,
SynthPadWarm,
SynthPadPolysynth,
SynthPadChoir,
SynthPadBowed,
SynthPadMetallic,
SynthPadHalo,
SynthPadSweep,
SynthFXRain,
SynthFXSoundtrack,
SynthFXCrystal,
SynthFXAtmosphere,
SynthFXBrightness,
SynthFXGoblins,
SynthFXEchoes,
SynthFXSciFi,
Sitar,
Banjo,
Shamisen,
Koto,
Kalimba,
Bagpipe,
Fiddle,
Shana,
TinkleBell,
Agogo,
SteelDrums,
Woodblock,
TaikoDlum,
MelodicTom,
SynthDrum,
ReverseCymbal,
GuitarFretNoise,
BreathNoise,
Seashore,
BirdTweet,
TelephoneRing,
Helicopter,
Applause,
Gunshot,
}Expand description
Describes a MIDI instrument and stores valid standard MIDI instrument code
Variants§
None
AcousticGrandPiano
BrightAcousticPiano
ElectricGrandPiano
HonkyTonkPiano
RhodesPiano
ChorusedPiano
Harpsichord
Clavinet
Celesta
Glockenspiel
MusicBox
Vibraphone
Marimba
Xylophone
TubularBells
Dulcimer
HammondOrgan
PercussiveOrgan
RockOrgan
ChurchOrgan
ReedOrgan
Accordion
Harmonica
TangoAccordion
NylonGuitar
SteelGuitar
JazzElectricGuitar
CleanElectricGuitar
MutedElectricGuitar
OverdrivenGuitar
DistortionGuitar
GuitarHarmonics
AcousticBass
FingeredElectricBass
PickedElectricBass
FretlessBass
SlapBass1
SlapBass2
SynthBass1
SynthBass2
Violin
Viola
Cello
Contrabass
TremoloStrings
PizzicatoStrings
OrchestralHarp
Timpani
StringEnsemble1
StringEnsemble2
SynthStrings1
SynthStrings2
VoiceAahs
VoiceOohs
SynthVoice
OrchestraHit
Trumpet
Trombone
Tuba
MutedTrumpet
FrenchHorn
BrassSection
SynthBrass1
SynthBrass2
SopranoSax
AltoSax
TenorSax
BaritoneSax
Oboe
EnglishHorn
Bassoon
Clarinet
Piccolo
Flute
Recorder
PanFlute
BottleBlow
Shakuhachi
Whistle
Ocarina
SynthLeadSquare
SynthLeadSawtooth
SynthLeadCalliope
SynthLeadChiffer
SynthLeadCharang
SynthLeadVoice
SynthLeadFifths
SynthLeadAndBrass
SynthPadNewAge
SynthPadWarm
SynthPadPolysynth
SynthPadChoir
SynthPadBowed
SynthPadMetallic
SynthPadHalo
SynthPadSweep
SynthFXRain
SynthFXSoundtrack
SynthFXCrystal
SynthFXAtmosphere
SynthFXBrightness
SynthFXGoblins
SynthFXEchoes
SynthFXSciFi
Sitar
Banjo
Shamisen
Koto
Kalimba
Bagpipe
Fiddle
Shana
TinkleBell
Agogo
SteelDrums
Woodblock
TaikoDlum
MelodicTom
SynthDrum
ReverseCymbal
GuitarFretNoise
BreathNoise
Seashore
BirdTweet
TelephoneRing
Helicopter
Applause
Gunshot
Trait Implementations§
source§impl Clone for Instrument
impl Clone for Instrument
source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
Returns a copy 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 PartialEq<Instrument> for Instrument
impl PartialEq<Instrument> for Instrument
source§fn eq(&self, other: &Instrument) -> bool
fn eq(&self, other: &Instrument) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for Instrument
impl Eq for Instrument
impl StructuralEq for Instrument
impl StructuralPartialEq for Instrument
Auto Trait Implementations§
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