I started with audacity and I would like to generate a sound in the following form: Sine wave frequency f0 for 10s, then 5s silence then sine wave frequency f0 + 50 Hz and then silence 5s then sine wafe frequency f0+100 Hz etc… Is it possible to do this with Audacity, if so how?
There is a “TestTone” plugin from http://mda.smartelectronix.com/ which does something similar,
but the frequency increases logarithmically rather than linearly in equal steps, (see attached) …
Try running this code in the “Nyquist Prompt” effect:
Open Audacity
Tracks menu > Add New > Audio Track
Select part of the track (click and drag on the audio track)
Effect menu > Nyquist Prompt
Copy and paste the code below into the Nyquist Prompt text window
Click the “OK” button.
;; The first 6 code lines can be edited as required.
;; Anything after a semicolon is a comment and does nothing.
(setq f0 200) ; 200 hz
(setq hz-increase 50) ; frequency increase per tone
(setq hz-max 1000) ; maximum tone frequency
(setq tone-duration 3) ; 3 seconds tone duration
(setq pause-duration 1.5) ; 1.5 second pause between tones
(setq amp 0.8) ; output amplitude 0 to 1
;; End of user settings
(abs-env
(do* ((hz (+ f0 hz-increase) (+ hz hz-increase))
(total-dur tone-duration (+ total-dur tone-duration pause-duration))
(output (osc (hz-to-step f0) tone-duration)))
((>= hz hz-max) (mult amp output))
(setf output (sim
output
(at-abs (+ total-dur pause-duration)
(osc (hz-to-step hz) tone-duration))))))