Scriptnode threshold controlled saturation
-
Hey! I am currently trying to make a saturation/distortion plugin that activates only under a certain threshold and has all the parameters of a compressor (attack, knee, ratio, etc...). I feel like it should be an easy task, but as I've only just started learning scriptnode, I've been running in circles for the past week and haven't gotten anywhere. Would anyone have an idea that could help? I've already gotten the distortion to work, it's just the dynamics that are being a pain. Any help is appreciated!
-
Not an easy task.
I'd honestly say it's easier to do this in snex or c++ even. Unless you're set on doing this in pure scriptnode.Maybe someone here will know the answer. But this is a bit of a fiddly project.
-
@deadlycopter yeah what @griffinboy said... I dont know any of us who've built a compressor in scriptnode alone - I mostly use faust for this...
-
@Lindon thanks for the insight, I didn't realise that it'd be such a challenge. Could you point me in the direction to achieve what I'm going for? Any tutorials, threads, anything helps! Thanks!
-
@deadlycopter well I'd start by looking at the faust code for compressors and see if I could build it there...
-
What lindon said.
There are open source compressors on the internet, and blogs about how to program one. After you've built a compressor you can then use the computed gain reduction to apply your saturation instead of using it to apply volume.
-
@deadlycopter actually thinking about it a bit, if all you are looking to get out of the compressor code is some current "compressed" value based upon some input signal then the Faust compressors offer you dB values as output, e.g.
- now normally we just apply this dB value to the signal level to get a classic compressor - but there's nothing stopping you using it in some saturation component in Faust... you just need to convert the dB output values to something you can use in your saturation code