Compressor
-
Hello i was wondering how in HISE i can make a compressor graph looking like this?
Also i recompiled the jcompressor fx I made a knee, so I wanted to know how I can make that smooth curve too
thanks and sorry for bothering -
@hyperphonias I think this tutorial might have what you need:
https://github.com/christophhart/hise_tutorial/tree/master/DynamicsFX
-
Sending a linear -1 to 1 sample DC sweep through the effect is the real way to get out the curve. But you can just create a paintroutinue to approximate it if you're after the rough visual.
-
@griffinboy This seems to be the case for most graphing dsp stuff. But, does this mean we need to create a dsp object just for this purpose of sending the visualisation data to the UI without interfering with the audio thread itself?
I mean, the audio is treated with the main dsp objects in C++, then we create a third instance just for the purpose of sending the response curve?If the DSP is simple enough, I wonder if it won't be easier to re-create it in the UI script... But yeah, if it's already in the C++ side, why bother with this...
-
@HISEnberg thank you I seen it i'm kinda lost im trying to understand quit a bit (im a newbie on hise) I wanted to know, how can I add a new script im stuck im trying to figure out
-
@hyperphonias A scriptFX you mean? So you can create a DSP network?
It's the + sign at the right of FX -
@ustk not a dsp network
-
@ustk you know in the oninit interface, you can include files, i wonder how you create these files
-
@hyperphonias oh ok...
Write some code in the onInit, select it, right-click -> Move selection to external file
-
Yeah of course if it's c++ dsp, you can just use a global cable to send the graph to the UI
Keep a second, mono class of the compressor dsp without envelopes, and when a paramter changes, compute the response (staggered updates) using that instance and send it as a json to the UI side of Hise.But you can even do this in Hise if you want. I doubt the compressor algorithm is complex. Just write it as Hise script and process your line through it.
Without envelopes, a compressor is a waveshaper. It'll just be a simple algo