switch_per_sample

Function switch_per_sample 

Source
pub fn switch_per_sample<I: IntoIterator<Item = TimedValue<bool>, IntoIter: Clone>>(
    state: SwitchBufferState<I>,
) -> impl Iterator<Item = bool> + Clone
Expand description

Converts a SwitchBufferState into a per-sample iterator.

This provides the value of the parameter at each sample in the buffer. Note: for constant values, this returns an infinite iterator.