Skip to main content

tone_burst

Function tone_burst 

Source
pub fn tone_burst(
    sample_rate: f64,
    frequency: f64,
    amplitude: f64,
    on_ms: f64,
    off_ms: f64,
    repetitions: usize,
) -> Vec<f64>
Expand description

Generate a tone burst for attack/release timing measurement.

Creates a signal with repetitions bursts of a sine wave, each on_ms long followed by off_ms of silence.