pub struct Pattern {
pub active_channels: ActiveChannels,
pub rows: Vec<Row>,
}Expand description
Pattern
Each pattern is represented by a table, consisting of rows (time) and columns (simultaneously playing channels). Patterns contain note data for triggering samples (instruments), but they can also contain effect commands that change global, local or channel-local playback parameters.
Patterns are stored as a list of Rows.
This API will change in the future because it doesn’t impose the invariant that
active_channels and rows stay in sync.
Fields§
§active_channels: ActiveChannelsActive channels
Channel is active if it contains any command in any row of the pattern. Currently skipping rows with effects is not accounted for.
rows: Vec<Row>Pattern rows
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pattern
impl RefUnwindSafe for Pattern
impl Send for Pattern
impl Sync for Pattern
impl Unpin for Pattern
impl UnwindSafe for Pattern
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