pub struct Lane {
pub note: u8,
pub muted: bool,
pub soloed: bool,
pub steps: [Step; 32],
}Expand description
One row of the grid: a voice, and the steps that fire it.
Fields§
§note: u8The note every step on this lane plays, or Lane::FROM_STEP when
the pitch comes from the step instead.
A drum lane is pinned to one note from the kit’s map — that is what makes it “the kick lane” — and a melodic lane takes its pitch, its chord and its voicing from each step.
muted: bool§soloed: bool§steps: [Step; 32]Implementations§
Source§impl Lane
impl Lane
Sourcepub const FROM_STEP: u8 = 0xFF
pub const FROM_STEP: u8 = 0xFF
Lane::note for a lane whose pitch comes from its steps. Outside
the MIDI range, so it cannot collide with a real note.
Sourcepub const fn is_pitched(&self) -> bool
pub const fn is_pitched(&self) -> bool
Whether this lane’s pitch comes from its steps.
Trait Implementations§
impl Copy for Lane
impl Eq for Lane
impl StructuralPartialEq for Lane
Auto Trait Implementations§
impl Freeze for Lane
impl RefUnwindSafe for Lane
impl Send for Lane
impl Sync for Lane
impl Unpin for Lane
impl UnsafeUnpin for Lane
impl UnwindSafe for Lane
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