pub struct Stem {
pub id: String,
pub is_bus: bool,
pub bus: Option<String>,
pub left: Vec<f32>,
pub right: Vec<f32>,
}Expand description
One rendered stem: a track’s positioned stereo contribution (post
fader/pan/offset/duck, pre bus/master) or a bus’s processed return
(post inserts and return fader, pre master chain). id is the track’s
layer id, or bus:<id> for a bus. Stems are pre-master-chain by
definition: the sum of every MASTER-routed track stem plus every bus
stem reproduces the mix the master chain hears — a bus-routed track’s
stem is its channel output for your own processing, already included
in its bus’s stem.
Fields§
§id: StringThe track’s layer id, or bus:<id> for a bus stem.
is_bus: boolWhether this is a bus stem (a processed bus return).
bus: Option<String>Where this track stem routes: Some(bus id) if its main output goes
to a bus (the stem is then already inside that bus’s stem), None if
it lands on the master bus directly. Always None for bus stems.
left: Vec<f32>The left channel.
right: Vec<f32>The right channel.