Hello All,
I'm using Windows 10 X64, t would be nice and very useful to me, if Chirp had another interpolation. Linear and Logarithmic, and perhaps "Increment".
When I add a chirp, I normally use Linea interpolation, but instead of incrementing by 1, sometimes I need to increment by 1/2 or 1/4. Sometimes I need to increment by 5 hz. If such is available I haven't found it.
Thanks very much to the Audacity development team, boolsifter
Chirp Interpolation
Forum rules
This forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
-
boolsifter
- Posts: 10
- Joined: Mon Apr 20, 2020 3:01 am
- Operating System: Windows 10
Re: Chirp Interpolation
Audacity "could" include thousands of different sound generators, but as Audacity is an audio recorder and editor rather than a synthesizer, that would just be clutter for most users. What Audacity does instead is to provide a few basic generators, but also includes a scripting language called "Nyquist" to allow people to create their own generators.
The easiest way to run a Nyquist script is to make a selection in an audio track, then open the "Nyquist Prompt" tool (https://manual.audacityteam.org/man/nyquist_prompt.html), enter their Nyquist code, and apply it.
Nyquist is a very comprehensive scripting language for working with audio. There's some information about Nyquist scripting in the Audacity manual: https://manual.audacityteam.org/man/nyquist.html
Here's some snippets to get you started. Lines beginning with a semicolon ";" are comments and are ignored by Nyquist - I've added comments to explain what the code is doing.
The easiest way to run a Nyquist script is to make a selection in an audio track, then open the "Nyquist Prompt" tool (https://manual.audacityteam.org/man/nyquist_prompt.html), enter their Nyquist code, and apply it.
Nyquist is a very comprehensive scripting language for working with audio. There's some information about Nyquist scripting in the Audacity manual: https://manual.audacityteam.org/man/nyquist.html
Here's some snippets to get you started. Lines beginning with a semicolon ";" are comments and are ignored by Nyquist - I've added comments to explain what the code is doing.
Code: Select all
;generate a 440 Hz tone
(hzosc 440)
Code: Select all
;set 'my-sig' to a 440 Hz tone
(setf mysig (hzosc 440))
Code: Select all
;generate a 1000 Hz tone with amplitude 0.5
(mult 0.5 (hzosc 1000))
Code: Select all
;generate a 1000 Hz tone with linear amplitude
;transition from 0.1 to 0.8
(mult (pwlv 0.1 1 0.8)
(hzosc 1000))
Code: Select all
;generate a 1000 Hz tone with exponential
;amplitude transition from 0.1 to 0.8
(mult (pwev 0.1 1 0.8)
(hzosc 1000))
Code: Select all
;set 'start-hz' to 100
(setf start-hz 100)
;set 'end-hz' to 1000
(setf end-hz 1000)
;generate a tone with a linear transition
(hzosc (pwlv start-hz 1 end-hz))
Code: Select all
;set 'start-hz' to 100
(setf start-hz 100)
;set 'end-hz' to 1000
(setf end-hz 1000)
;generate a tone with an exponential
;transition from start-hz to end-hz.
(hzosc (pwev start-hz 1 end-hz))
Code: Select all
;exponential amplitude transition and frequency transition:
;set 'start-hz' to 100
(setf start-hz 100)
;set 'end-hz' to 1000
(setf end-hz 1000)
;generate a tone with an exponential
;transition from start-hz to end-hz.
(setf my-sweep (hzosc (pwev start-hz 1 end-hz)))
;adjust the amplitude
(mult (pwev 0.1 1 0.8) my-sweep)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
boolsifter
- Posts: 10
- Joined: Mon Apr 20, 2020 3:01 am
- Operating System: Windows 10
Re: Chirp Interpolation
Awesome answer, as I was looking at Nyquist. I only yesterday discovered "add macros" and between Nyquist and macros I can get what I need... Thanks
Re: Chirp Interpolation
If you have questions about Nyquist, we have a forum board specifically for such questions: viewforum.php?f=39
and for Macros: viewforum.php?f=69
and for Macros: viewforum.php?f=69
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)