Enum midi_msg::GMSoundSet
source · [−]pub enum GMSoundSet {
Show 128 variants
AcousticGrandPiano,
BrightAcousticPiano,
ElectricGrandPiano,
HonkytonkPiano,
ElectricPiano1,
ElectricPiano2,
Harpsichord,
Clavi,
Celesta,
Glockenspiel,
MusicBox,
Vibraphone,
Marimba,
Xylophone,
TubularBells,
Dulcimer,
DrawbarOrgan,
PercussiveOrgan,
RockOrgan,
ChurchOrgan,
ReedOrgan,
Accordion,
Harmonica,
TangoAccordion,
AcousticGuitarNylon,
AcousticGuitarSteel,
ElectricGuitarJazz,
ElectricGuitarClean,
ElectricGuitarMuted,
OverdrivenGuitar,
DistortionGuitar,
GuitarHarmonics,
AcousticBass,
ElectricBassFinger,
ElectricBassPick,
FretlessBass,
SlapBass1,
SlapBass2,
SynthBass1,
SynthBass2,
Violin,
Viola,
Cello,
Contrabass,
TremoloStrings,
PizzicatoStrings,
OrchestralHarp,
Timpani,
StringEnsemble1,
StringEnsemble2,
SynthStrings1,
SynthStrings2,
ChoirAahs,
VoiceOohs,
SynthVoice,
OrchestraHit,
Trumpet,
Trombone,
Tuba,
MutedTrumpet,
FrenchHorn,
BrassSection,
SynthBrass1,
SynthBrass2,
SopranoSax,
AltoSax,
TenorSax,
BaritoneSax,
Oboe,
EnglishHorn,
Bassoon,
Clarinet,
Piccolo,
Flute,
Recorder,
PanFlute,
BlownBottle,
Shakuhachi,
Whistle,
Ocarina,
Lead1,
Lead2,
Lead3,
Lead4,
Lead5,
Lead6,
Lead7,
Lead8,
Pad1,
Pad2,
Pad3,
Pad4,
Pad5,
Pad6,
Pad7,
Pad8,
FX1,
FX2,
FX3,
FX4,
FX5,
FX6,
FX7,
FX8,
Sitar,
Banjo,
Shamisen,
Koto,
Kalimba,
Bagpipe,
Fiddle,
Shanai,
TinkleBell,
Agogo,
SteelDrums,
Woodblock,
TaikoDrum,
MelodicTom,
SynthDrum,
ReverseCymbal,
GuitarFretNoise,
BreathNoise,
Seashore,
BirdTweet,
TelephoneRing,
Helicopter,
Applause,
Gunshot,
}
Expand description
The instrument that should be played when applying a ChannelVoiceMsg::ProgramChange
.
Use GMSoundSet::Sound as u8
to use as the program number. For example:
MidiMsg::ChannelVoice {
channel: Channel::Ch1,
msg: ChannelVoiceMsg::ProgramChange {
program: GMSoundSet::Vibraphone as u8
}
};
Should not be used when targeting channel 10.
As defined in General MIDI System Level 1 (MMA0007 / RP003).
Variants
AcousticGrandPiano
BrightAcousticPiano
ElectricGrandPiano
HonkytonkPiano
ElectricPiano1
ElectricPiano2
Harpsichord
Clavi
Celesta
Glockenspiel
MusicBox
Vibraphone
Marimba
Xylophone
TubularBells
Dulcimer
DrawbarOrgan
PercussiveOrgan
RockOrgan
ChurchOrgan
ReedOrgan
Accordion
Harmonica
TangoAccordion
AcousticGuitarNylon
AcousticGuitarSteel
ElectricGuitarJazz
ElectricGuitarClean
ElectricGuitarMuted
OverdrivenGuitar
DistortionGuitar
GuitarHarmonics
AcousticBass
ElectricBassFinger
ElectricBassPick
FretlessBass
SlapBass1
SlapBass2
SynthBass1
SynthBass2
Violin
Viola
Cello
Contrabass
TremoloStrings
PizzicatoStrings
OrchestralHarp
Timpani
StringEnsemble1
StringEnsemble2
SynthStrings1
SynthStrings2
ChoirAahs
VoiceOohs
SynthVoice
OrchestraHit
Trumpet
Trombone
Tuba
MutedTrumpet
FrenchHorn
BrassSection
SynthBrass1
SynthBrass2
SopranoSax
AltoSax
TenorSax
BaritoneSax
Oboe
EnglishHorn
Bassoon
Clarinet
Piccolo
Flute
Recorder
PanFlute
BlownBottle
Shakuhachi
Whistle
Ocarina
Lead1
Lead2
Lead3
Lead4
Lead5
Lead6
Lead7
Lead8
Pad1
Pad2
Pad3
Pad4
Pad5
Pad6
Pad7
Pad8
FX1
FX2
FX3
FX4
FX5
FX6
FX7
FX8
Sitar
Banjo
Shamisen
Koto
Kalimba
Bagpipe
Fiddle
Shanai
TinkleBell
Agogo
SteelDrums
Woodblock
TaikoDrum
MelodicTom
SynthDrum
ReverseCymbal
GuitarFretNoise
BreathNoise
Seashore
BirdTweet
TelephoneRing
Helicopter
Applause
Gunshot
Trait Implementations
sourceimpl Clone for GMSoundSet
impl Clone for GMSoundSet
sourcefn clone(&self) -> GMSoundSet
fn clone(&self) -> GMSoundSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GMSoundSet
impl Debug for GMSoundSet
sourceimpl PartialEq<GMSoundSet> for GMSoundSet
impl PartialEq<GMSoundSet> for GMSoundSet
sourcefn eq(&self, other: &GMSoundSet) -> bool
fn eq(&self, other: &GMSoundSet) -> bool
impl Copy for GMSoundSet
impl Eq for GMSoundSet
impl StructuralEq for GMSoundSet
impl StructuralPartialEq for GMSoundSet
Auto Trait Implementations
impl RefUnwindSafe for GMSoundSet
impl Send for GMSoundSet
impl Sync for GMSoundSet
impl Unpin for GMSoundSet
impl UnwindSafe for GMSoundSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more