Enum midi_msg::GMPercussionMap
source · #[repr(u8)]pub enum GMPercussionMap {
Show 47 variants
AcousticBassDrum = 35,
BassDrum1 = 36,
SideStick = 37,
AcousticSnare = 38,
HandClap = 39,
ElectricSnare = 40,
LowFloorTom = 41,
ClosedHiHat = 42,
HighFloorTom = 43,
PedalHiHat = 44,
LowTom = 45,
OpenHiHat = 46,
LowMidTom = 47,
HiMidTom = 48,
CrashCymbal1 = 49,
HighTom = 50,
RideCymbal1 = 51,
ChineseCymbal = 52,
RideBell = 53,
Tambourine = 54,
SplashCymbal = 55,
Cowbell = 56,
CrashCymbal2 = 57,
Vibraslap = 58,
RideCymbal2 = 59,
HiBongo = 60,
LowBongo = 61,
MuteHiConga = 62,
OpenHiConga = 63,
LowConga = 64,
HighTimbale = 65,
LowTimbale = 66,
HighAgogo = 67,
LowAgogo = 68,
Cabasa = 69,
Maracas = 70,
ShortWhistle = 71,
LongWhistle = 72,
ShortGuiro = 73,
LongGuiro = 74,
Claves = 75,
HiWoodBlock = 76,
LowWoodBlock = 77,
MuteCuica = 78,
OpenCuica = 79,
MuteTriangle = 80,
OpenTriangle = 81,
}
Expand description
The General MIDI percussion sound to play for a given note number when targeting Channel 10.
For example:
MidiMsg::ChannelVoice {
channel: Channel::Ch10,
msg: ChannelVoiceMsg::NoteOn {
note: GMPercussionMap::Vibraslap as u8,
velocity: 127
}
};
As defined in General MIDI System Level 1 (MMA0007 / RP003).
Variants§
AcousticBassDrum = 35
BassDrum1 = 36
SideStick = 37
AcousticSnare = 38
HandClap = 39
ElectricSnare = 40
LowFloorTom = 41
ClosedHiHat = 42
HighFloorTom = 43
PedalHiHat = 44
LowTom = 45
OpenHiHat = 46
LowMidTom = 47
HiMidTom = 48
CrashCymbal1 = 49
HighTom = 50
RideCymbal1 = 51
ChineseCymbal = 52
RideBell = 53
Tambourine = 54
SplashCymbal = 55
Cowbell = 56
CrashCymbal2 = 57
Vibraslap = 58
RideCymbal2 = 59
HiBongo = 60
LowBongo = 61
MuteHiConga = 62
OpenHiConga = 63
LowConga = 64
HighTimbale = 65
LowTimbale = 66
HighAgogo = 67
LowAgogo = 68
Cabasa = 69
Maracas = 70
ShortWhistle = 71
LongWhistle = 72
ShortGuiro = 73
LongGuiro = 74
Claves = 75
HiWoodBlock = 76
LowWoodBlock = 77
MuteCuica = 78
OpenCuica = 79
MuteTriangle = 80
OpenTriangle = 81
Trait Implementations§
source§impl Clone for GMPercussionMap
impl Clone for GMPercussionMap
source§fn clone(&self) -> GMPercussionMap
fn clone(&self) -> GMPercussionMap
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 GMPercussionMap
impl Debug for GMPercussionMap
source§impl Display for GMPercussionMap
impl Display for GMPercussionMap
source§impl FromStr for GMPercussionMap
impl FromStr for GMPercussionMap
source§impl IntoEnumIterator for GMPercussionMap
impl IntoEnumIterator for GMPercussionMap
type Iterator = GMPercussionMapIter
fn iter() -> GMPercussionMapIter ⓘ
source§impl PartialEq for GMPercussionMap
impl PartialEq for GMPercussionMap
source§fn eq(&self, other: &GMPercussionMap) -> bool
fn eq(&self, other: &GMPercussionMap) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for GMPercussionMap
impl TryFrom<&str> for GMPercussionMap
impl Copy for GMPercussionMap
impl Eq for GMPercussionMap
impl StructuralPartialEq for GMPercussionMap
Auto Trait Implementations§
impl Freeze for GMPercussionMap
impl RefUnwindSafe for GMPercussionMap
impl Send for GMPercussionMap
impl Sync for GMPercussionMap
impl Unpin for GMPercussionMap
impl UnwindSafe for GMPercussionMap
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