Skip to main content

lfo_tempo_rate

Function lfo_tempo_rate 

Source
pub fn lfo_tempo_rate(
    index: u8,
    mode: TempoMode,
    beat_rate: Hz,
) -> Result<Hz, RangeError>
Expand description

The rate of a tempo-synced LFO.

Index i of lfo_N_tempo (0 to 12) gives 2^(i - 8) cycles per beat, times the mode factor, times the beat rate. Index 0 freezes the LFO at 0 Hz. At 120 BPM the beat rate is 2 Hz, so index 8 (1/4) runs at 2 Hz.

ยงErrors

A RangeError for an index above 12.