pub struct Note {
pub duration: Time,
pub pitch: Pitch,
pub velocity: u8,
pub channel: Channel,
pub articulation: Articulation,
}Expand description
A single pitched note with timing, dynamics, and articulation.
Fields§
§duration: TimeSounding length of the note.
pitch: PitchPitch the note sounds.
velocity: u8MIDI velocity (0-127).
channel: ChannelMIDI channel the note plays on.
articulation: ArticulationArticulation applied to the note.
Implementations§
Trait Implementations§
impl Eq for Note
Source§impl MusicObject for Note
impl MusicObject for Note
impl StructuralPartialEq for Note
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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