Struct ittech::Pattern[][src]

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.