Closed lane711 closed 5 months ago
What is the proper way to run a frequency sweep? For example, I want to input: start frequency: 100Hz end frequency: 200Hz sweep rate: 1 Hz per second
and then generate a tone that goes from the start to end frequency at a rate of 1 Hz per second. So the above sweep would run for 100 seconds.
Something like this should work:
const oscillator = new Tone.Oscillator(100).toDestination() oscillator.start(); // ramp to 200hz over 100 seconds oscillator.frequency.rampTo(200, 100);
What is the proper way to run a frequency sweep? For example, I want to input: start frequency: 100Hz end frequency: 200Hz sweep rate: 1 Hz per second
and then generate a tone that goes from the start to end frequency at a rate of 1 Hz per second. So the above sweep would run for 100 seconds.