pub struct Note<T: MIDINum> {
pub start: T,
pub len: T,
pub key: u8,
pub channel: u8,
pub velocity: u8,
}
Fields§
§start: T
§len: T
§key: u8
§channel: u8
§velocity: u8
Trait Implementations§
Source§impl<T: MIDINum> MIDINote<T> for Note<T>
impl<T: MIDINum> MIDINote<T> for Note<T>
fn start(&self) -> T
fn start_mut(&mut self) -> &mut T
fn len(&self) -> T
fn len_mut(&mut self) -> &mut T
fn key(&self) -> u8
fn key_mut(&mut self) -> &mut u8
fn channel(&self) -> u8
fn channel_mut(&mut self) -> &mut u8
fn velocity(&self) -> u8
fn velocity_mut(&mut self) -> &mut u8
fn set_key(&mut self, key: u8)
fn set_channel(&mut self, channel: u8)
fn set_velocity(&mut self, velocity: u8)
fn end(&self) -> T
Source§fn move_start(&mut self, start: T)
fn move_start(&mut self, start: T)
Sets the note start and note length, keeping the end the same
impl<T: MIDINum> StructuralPartialEq for Note<T>
Auto Trait Implementations§
impl<T> Freeze for Note<T>where
T: Freeze,
impl<T> RefUnwindSafe for Note<T>where
T: RefUnwindSafe,
impl<T> Send for Note<T>
impl<T> Sync for Note<T>
impl<T> Unpin for Note<T>where
T: Unpin,
impl<T> UnwindSafe for Note<T>where
T: UnwindSafe,
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