Struct ittech::Pattern[][src]

pub struct Pattern {
    pub active_channels: ActiveChannels,
    pub rows: Vec<Row>,
}

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: ActiveChannels

Active 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

impl Clone for Pattern[src]

impl Debug for Pattern[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.