Zyn envelope issue
-
- KVRian
- 649 posts since 22 Nov, 2006
Hello Zyn experts. I've run into something a little strange with Zyn's envelopes that I don't fully understand. If you have a little time, please listen to this patch. It's in PADSynth, so there's only one envelope page.
http://dl.dropbox.com/u/14864402/Zyn_en ... 7-Pad4.xiz
And here is a jpg of the envelope page, and the amp and filter envelopes.
http://dl.dropbox.com/u/14864402/Zyn_en ... 0issue.jpg
I'm pretty sure I understand how to set ADSR's, but at the very end of this sound, it doesn't fade out, it drops out. In other words, with the way I have the ADSR's set, the amplitude should go from 100% down to 0% over the 3.4 sec setting. Instead, it seems to go from 100% down to, say, 10%, and then it just drops to 0%. The best way to hear this is to strike a key and release right away.
If you've got a good grasp of Zyn's envelopes, what am I getting wrong here?
By the way, I just tried reversing the D.dt and R.dt settings in the amp envelope, and that didn't make any difference.
Thank you,
Todd
http://dl.dropbox.com/u/14864402/Zyn_en ... 7-Pad4.xiz
And here is a jpg of the envelope page, and the amp and filter envelopes.
http://dl.dropbox.com/u/14864402/Zyn_en ... 0issue.jpg
I'm pretty sure I understand how to set ADSR's, but at the very end of this sound, it doesn't fade out, it drops out. In other words, with the way I have the ADSR's set, the amplitude should go from 100% down to 0% over the 3.4 sec setting. Instead, it seems to go from 100% down to, say, 10%, and then it just drops to 0%. The best way to hear this is to strike a key and release right away.
If you've got a good grasp of Zyn's envelopes, what am I getting wrong here?
By the way, I just tried reversing the D.dt and R.dt settings in the amp envelope, and that didn't make any difference.
Thank you,
Todd
-
- KVRian
- Topic Starter
- 649 posts since 22 Nov, 2006
Does anyone have a comment on this post? I'm very curious if there is something I'm not setting correctly or if this is the nature of Zyn-velopes.
Thank you.
Thank you.
https://www.reverbnation.com/toddsilva
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
- KVRAF
- 5713 posts since 5 Aug, 2006 from UK - The Mudway Towns
Can't say I've noticed this in particular, but there are some oddities in the way Zyn's ADSR works. I've noticed that if you have an envelope that should decay to zero while a note is still being held, it doesn't in fact reach zero. The two might be related.
-
- KVRian
- Topic Starter
- 649 posts since 22 Nov, 2006
Thanks folderol,
You have described what I am experiencing. So have you found any way to correct this? Or is this just a fact of life with Zyn as it currently stands, until there is a change to the specific section of code that processes these events?
You have described what I am experiencing. So have you found any way to correct this? Or is this just a fact of life with Zyn as it currently stands, until there is a change to the specific section of code that processes these events?
https://www.reverbnation.com/toddsilva
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
-
- KVRian
- 551 posts since 21 Oct, 2008 from USA
As far as I can recall, the envelope code never reaches zero.
I think PaulN said there was some sort of specific reason for this, but I cannot recall at the moment.
If this is to be altered, it could be fixed there or in the ad/sub/pad synth code (intelligently stop a note (would have good cpu savings (think sustain in poly mode))), though there be dragons in that code.
Goes to read the code now...
I think PaulN said there was some sort of specific reason for this, but I cannot recall at the moment.
If this is to be altered, it could be fixed there or in the ad/sub/pad synth code (intelligently stop a note (would have good cpu savings (think sustain in poly mode))), though there be dragons in that code.
Goes to read the code now...
One of the developers on the ZynAddSubFX open source synth
The author of the Zyn-Fusion UI for ZynAddSubFX
The author of the Zyn-Fusion UI for ZynAddSubFX
-
- KVRian
- 551 posts since 21 Oct, 2008 from USA
Ok, magic number found.
In src/Params/EnvelopeParams.h you can find MIN_ENVELOPE_DB to be -40dB at the top of the file.
This leaves 1% of the full amplitude signal sitting around [10^(-40dB/20) -> 0.01].
In order to quiet things down I just pushed it to the extreme of -400dB (original signal times 1/100000000000000000000), which gets rid of any sound on my end.
Also Envelope.cpp:186 needs to have -40 changed to the MIN_ENVELOPE_DB.
sagetone, let me know if I solved your problem or just what folderol mentioned.
EDIT: just noticed that the discussed issue is with the windows version.
Its a good bit more difficult to recompile that than the linux version...
In src/Params/EnvelopeParams.h you can find MIN_ENVELOPE_DB to be -40dB at the top of the file.
This leaves 1% of the full amplitude signal sitting around [10^(-40dB/20) -> 0.01].
In order to quiet things down I just pushed it to the extreme of -400dB (original signal times 1/100000000000000000000), which gets rid of any sound on my end.
Also Envelope.cpp:186 needs to have -40 changed to the MIN_ENVELOPE_DB.
sagetone, let me know if I solved your problem or just what folderol mentioned.
EDIT: just noticed that the discussed issue is with the windows version.
Its a good bit more difficult to recompile that than the linux version...
One of the developers on the ZynAddSubFX open source synth
The author of the Zyn-Fusion UI for ZynAddSubFX
The author of the Zyn-Fusion UI for ZynAddSubFX
- KVRian
- 1055 posts since 3 Jul, 2006
Not that difficult. Could give it a try if ppl are interested.
-
- KVRian
- Topic Starter
- 649 posts since 22 Nov, 2006
Hi fundamental, thank you for your input. I somewhat follow what you are saying. However, I am not a programmer, and as you noted I'm running Windows, so I can't make changes to the code. It's pretty cool that you've thought through this though!
Hi jackoo, I'm def interested in this change if you could do it.
Thank you both.
Hi jackoo, I'm def interested in this change if you could do it.
Thank you both.
https://www.reverbnation.com/toddsilva
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
Ryzen 9 5950x with 64G, i7 5820K with 32G DDR4, networked using AudioGridder, Bitwig, NI, U-he, and Arturia soft synths to name a few
Eurorack system https://www.modulargrid.net/e/racks/view/432465
