pub struct Part {
pub id: String,
pub name: String,
pub short_name: String,
pub staves: Vec<Staff>,
pub midi_channel: u8,
pub midi_program: u8,
pub midi_pitch_bends: Vec<MidiPitchBend>,
}Fields§
§id: String§name: String§short_name: String§staves: Vec<Staff>§midi_channel: u8MIDI channel (0–15). Channel 9 is conventionally used for percussion.
midi_program: u8General MIDI program number (0–127). Default 0 = Acoustic Grand Piano.
midi_pitch_bends: Vec<MidiPitchBend>MIDI pitch-bend events preserved from interchange input, in PPQ ticks.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
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
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
impl UnwindSafe for Part
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