Exponential Wind-downs for synths?
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.
-
sirendude2011
- Posts: 16
- Joined: Mon May 28, 2012 8:37 pm
- Operating System: Please select
Exponential Wind-downs for synths?
I am back with another problem. This problem is very similar to the last problem I had. I know Nyquist can be used in many ways. My question is, since I can generate exponential wind-ups now, is there a code someone has done and tested that can generate exponential wind-downs?
What I do now is generate many chirps of varying lengths back to back, and that takes ages and is usually incorrect according to TheWoog34. I want my synths to be correct with the timing of everything and how things are done.
What I do now is generate many chirps of varying lengths back to back, and that takes ages and is usually incorrect according to TheWoog34. I want my synths to be correct with the timing of everything and how things are done.
Re: Exponential Wind-downs for synths?
For anyone new to this thread, the topic is (I presume) "synthesizing siren sounds" (as per these topics: http://forum.audacityteam.org/viewtopic.php?t=65862 and http://forum.audacityteam.org/viewtopic ... 16&t=61260 ). Is that right sirendude2011?
I'd not be surprised if the wind down is non-linear, but is it "exponential"? Have you analysed the rate of pitch change?
Which code are you using for the Wind-up?
I expect that it can be done in a similar way to the wind-up, but I've not yet seen it in code.sirendude2011 wrote:My question is, since I can generate exponential wind-ups now, is there a code someone has done and tested that can generate exponential wind-downs?
I'd not be surprised if the wind down is non-linear, but is it "exponential"? Have you analysed the rate of pitch change?
Which code are you using for the Wind-up?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
sirendude2011
- Posts: 16
- Joined: Mon May 28, 2012 8:37 pm
- Operating System: Please select
Re: Exponential Wind-downs for synths?
Yes steve it would be for siren synthesizing. The code I'm using for wind-ups is the same as the code that you linked in the second link. I was figuring, if there was some way to reverse the coding to reverse the way it generates (generates a wind-down rather than a wind-up), it might work the way I would like it to. Maybe I'll have to learn basic Nyquist coding and code one myself somehow.
Re: Exponential Wind-downs for synths?
Have a play with this code.
It is just the basic sawtooth version so you will get some aliasing distortion (the distortion will sound similar to tuning in a short-wave radio)..
There is an additional control "opt" which may be set to 1, 2 or 3 to give different pitch change curves. Are any of those close to what you need?
It is just the basic sawtooth version so you will get some aliasing distortion (the distortion will sound similar to tuning in a short-wave radio)..
There is an additional control "opt" which may be set to 1, 2 or 3 to give different pitch change curves. Are any of those close to what you need?
Code: Select all
(setq start-freq 1320) ; initial frequency - Hz
(setq final-freq 440) ; final frequency - Hz
(setq initial-amp 0.5) ; initial amplitude on a scale 0 to 1
(setq final-amp 0.5) ; final amplitude on a scale 0 to 1
(setq opt 1) ; pitch curve can be 1, 2 or 3
(setq hz1 start-freq)
(setq hz2 final-freq)
(setq iamp (max (min initial-amp 1) 0))
(setq famp (max (min final-amp 1) 0))
(mult (pwlv iamp 1 famp)
(fmosc 0
(sum
hz1
(mult
(- hz1 hz2)
(case opt
(1 (sum -1 (pwev 1 1 0.01)))
(2 (pwlv 0 1 -1))
(T (mult -1 (pwev 0.1 1 1))))))
*saw-table*))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
-
sirendude2011
- Posts: 16
- Joined: Mon May 28, 2012 8:37 pm
- Operating System: Please select
Re: Exponential Wind-downs for synths?
This code is perfect! Thanks Steve!
Re: Exponential Wind-downs for synths?
Which of the curves is most realistic?
Is it the same curve for all sirens, or do some need a different curve?
Would it be useful to have a variable curve?
Is it the same curve for all sirens, or do some need a different curve?
Would it be useful to have a variable curve?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Exponential Wind-downs for synths?
It depends on the siren. Some sirens, such as the ACA Hurricane, STL-10 and STH-10 have VERY long wind-downs that aren't exactly logarithmic but they aren't linear either. Thunderbolts tend to have quick logarithmic wind-downs.
Oh, Steve, is there any audacity plugin that can be like a "low-pass fade-in" - it starts at a low-pass filter of your choice and gradually becomes less low-passed? When sirens spin, the sound is low-passed more as the siren rotor gets slower. The "low-pass fade" could apply to wind-downs as well as wind-ups.
Also, one more question. The exponential wind-up coding that you gave me on the forums a while ago is amazingly perfect for synthesizing single phase sirens - the motor starts torque-y and winds up slower and slower until it peaks. However, most sirens were made with 3 phase motors which gives them a fairly linear wind-up. Unlike the linear chirp option in Audacity, 3 phase sirens tend to have this smooth "pitch curve" right as it peaks while the linear chirp in Audacity jumps right up to full speed.
http://www.youtube.com/watch?v=UJIWx-eC7YU here's an example of a typical 3 phase siren with that special linear wind-up. How would we construct this in Audacity?
Here's a siren with a wind-up that can be completely accurately reproduced using the linear chirp generator in Audacity - http://www.youtube.com/watch?v=X2MlmcY8UZU - notice the difference right near the end of the wind-up.
Oh, Steve, is there any audacity plugin that can be like a "low-pass fade-in" - it starts at a low-pass filter of your choice and gradually becomes less low-passed? When sirens spin, the sound is low-passed more as the siren rotor gets slower. The "low-pass fade" could apply to wind-downs as well as wind-ups.
Also, one more question. The exponential wind-up coding that you gave me on the forums a while ago is amazingly perfect for synthesizing single phase sirens - the motor starts torque-y and winds up slower and slower until it peaks. However, most sirens were made with 3 phase motors which gives them a fairly linear wind-up. Unlike the linear chirp option in Audacity, 3 phase sirens tend to have this smooth "pitch curve" right as it peaks while the linear chirp in Audacity jumps right up to full speed.
http://www.youtube.com/watch?v=UJIWx-eC7YU here's an example of a typical 3 phase siren with that special linear wind-up. How would we construct this in Audacity?
Here's a siren with a wind-up that can be completely accurately reproduced using the linear chirp generator in Audacity - http://www.youtube.com/watch?v=X2MlmcY8UZU - notice the difference right near the end of the wind-up.
Re: Exponential Wind-downs for synths?
I don't know of any existing plug-ins for that, but it's not hard to program in Nyquist.Thewoog34 wrote:Oh, Steve, is there any audacity plugin that can be like a "low-pass fade-in" - it starts at a low-pass filter of your choice and gradually becomes less low-passed? When sirens spin, the sound is low-passed more as the siren rotor gets slower. The "low-pass fade" could apply to wind-downs as well as wind-ups.
Are you interested in learning how to program these things yourself? If you are, I'd be happy to help you.
It seems like the curves need to be customisable. So we have three curves of change: frequency, level, low pass filter. I guess that these must all be proportional in some way?Thewoog34 wrote:The exponential wind-up coding that you gave me on the forums a while ago is amazingly perfect for synthesizing single phase sirens - the motor starts torque-y and winds up slower and slower until it peaks. However, most sirens were made with 3 phase motors which gives them a fairly linear wind-up. Unlike the linear chirp option in Audacity, 3 phase sirens tend to have this smooth "pitch curve" right as it peaks while the linear chirp in Audacity jumps right up to full speed.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Exponential Wind-downs for synths?
Yes, as a siren increases in frequency it should become less and less low-passed, but there has to be a limit that can be changed depending on what siren you are trying to re-create.
Here's my recording of an SD-10A (linked to the wind-down) http://www.youtube.com/watch?v=vvaA7gG8 ... page#t=35s
Here's sirendude's SD-10B synth (at the wind-down part) notice how it sounds wrong as it winds down, like it is too rough while in the recording the sound gets softer and softer as it winds down. http://www.youtube.com/watch?v=-miHwa9U ... age#t=108s
Here's my recording of an SD-10A (linked to the wind-down) http://www.youtube.com/watch?v=vvaA7gG8 ... page#t=35s
Here's sirendude's SD-10B synth (at the wind-down part) notice how it sounds wrong as it winds down, like it is too rough while in the recording the sound gets softer and softer as it winds down. http://www.youtube.com/watch?v=-miHwa9U ... age#t=108s
Last edited by Thewoog34 on Sat Aug 25, 2012 12:23 am, edited 1 time in total.
Re: Exponential Wind-downs for synths?
I figured out how to manually do the wind-up: this is a little time consuming but it DOES work. Simply combine the regular chrip generator with the exponential chirp nyquist coding. I also found other programs that can do the low-pass curve.
Could you point me towards a plugin that is like the HQ tone plugin except it generates chirps instead? Non-aliased waveforms are a lot easier to work with.
Thank you for the tremendous amount of help you have given us so far, Steve. I'll be sure to give you plenty of credit in my latest synth I'm working on.
Could you point me towards a plugin that is like the HQ tone plugin except it generates chirps instead? Non-aliased waveforms are a lot easier to work with.
Thank you for the tremendous amount of help you have given us so far, Steve. I'll be sure to give you plenty of credit in my latest synth I'm working on.