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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.