Struct screech::basic::Track[][src]

pub struct Track {
    pub gain: f32,
    pub panning: f32,
    // some fields omitted
}
Expand description

Standard track with panning and volume control

Fields

gain: f32

Gain setting in dBs

panning: f32

Panning setting, -1.0 to 1.0 for -114dB and +6dB respectively. inverted to each channel

Implementations

Create a new track with a unique id

add source to the input, supports multiple inputs

remove source from input

Set gain between 1.0 and -1.0 by external source

0.9 is set to unity gain, for 0.1 increment the level increases by 6dB. For example setting a gain of 1.0 gives +6dB of amplification and setting a gain of -1.0 would result in -114dB

Remove gain cv source

Set left and right channel panning by external source id

0.0 is center resulting in no amplification, -1.0 is left channel +6dB, right channel -114dB, 1.0 is left channel -114dB, right channel +6dB

Remove panning cv source

Render the next real time signal

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

move one buffersize forward in discrete time

get id for instance, this is to identify this source when building the output

Get a list of sources

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.