pub struct PercussionInstrument {
pub id: String,
pub name: Option<String>,
pub midi_unpitched: Option<u8>,
pub staff_position: Option<i8>,
pub notehead: Option<NoteHead>,
pub preferred_voice: Option<u8>,
pub techniques: Vec<String>,
}Expand description
An editable percussion-kit mapping associated with a MusicXML score-instrument identity.
The MIDI key remains the playback fallback, while the remaining fields describe renderer-independent notation defaults. Individual notes may still override these defaults.
Fields§
§id: StringStable MusicXML score-instrument identity.
name: Option<String>§midi_unpitched: Option<u8>General MIDI unpitched key used as the playback fallback.
staff_position: Option<i8>Diatonic staff position relative to the middle line.
notehead: Option<NoteHead>Default glyph when a note does not supply a renderer-specific override.
preferred_voice: Option<u8>Preferred one-based score voice for newly entered kit notes.
techniques: Vec<String>Named kit-specific variants such as rim-shot or open.
Trait Implementations§
Source§impl Clone for PercussionInstrument
impl Clone for PercussionInstrument
Source§impl Debug for PercussionInstrument
impl Debug for PercussionInstrument
Source§impl<'de> Deserialize<'de> for PercussionInstrument
impl<'de> Deserialize<'de> for PercussionInstrument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PercussionInstrument
impl PartialEq for PercussionInstrument
Source§impl Serialize for PercussionInstrument
impl Serialize for PercussionInstrument
impl StructuralPartialEq for PercussionInstrument
Auto Trait Implementations§
impl Freeze for PercussionInstrument
impl RefUnwindSafe for PercussionInstrument
impl Send for PercussionInstrument
impl Sync for PercussionInstrument
impl Unpin for PercussionInstrument
impl UnsafeUnpin for PercussionInstrument
impl UnwindSafe for PercussionInstrument
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