Control Sine Wave Generator Saturation with envelope?
-
How do I control a Sine Wave Generator's Saturation parameter with an envelope?
-
I found this thread about setting the Saturation value with scripting. I know I can do that, but how do link an envelope to that param?
-
@d-healey In this post you were asking about time-based modulation of the Saturation effect. I know (I think) that this is different to the Saturation parameter in the Sine Wave Generator, but you proposed a solution of a triggered timer controlling the param.
https://forum.hise.audio/post/59038
If we can't currently modulate the Saturation param with an envelope, it sounds like your timer approach would work.
Can you give me an example? I assume there would be a timer trigger in the onNoteOn function?
My use-case is a monophonic synth, if that makes it easier!

EDIT: just found your video on synth timers - looks exactly like what I need!

https://www.youtube.com/watch?v=WAByniRYM1o&list=PLynv7CujPCfZBVsmtWsSZ68nPMXuIHwNL&index=3