Question about Mid-Side Scripnode snippet
-
Hello and Happy Holidays!
I'm trying to make a plugin using mid-side processing snippet I've found here https://forum.hise.audio/topic/1374/how-to-make-mid-side-processing/85?_=1671906638667
And the problem is that usually when I use snippets with scriptnode effects I see some blocks and wires when I open that scpirt in workspace, but this one doesn't have anything like that and I only see a scriptnode start page. However I do see some code in processBlock.
The snippet works fine in Hise and I know how to compile scripnode effects into dll.
But I'm not sure how to correctly compile this particular script into dll because there is no toolbox on top, only scriptnode start page.I tried to use "create an embedded DSP network" option, but compiled dll doesn't pass any sound.
Any help is highly appreciated. Thanks!
-
@DanSound This snippet precedes scriptnode and uses HiseScript for DSP (which is not recommended anymore at this point).
Compiling to DLL is a scriptnode feature, so this is obviously not available here.
Just use a multi container with a
ms_encode
/ms_decode
pair (there's actually a template calledmid_side
that sets this up for you correctly. -
@Christoph-Hart Thanks for reply! This is completely new world for me after basic scripting :)
I only found this template https://docs.hise.audio/scriptnode/list/template/mid_side.html but it's empty. I also looked on GitHub but didn't find anything there.
When I click on "create an embedded DSP network" it automatically creates nodes ms_encode and ms_decode. Now I just need to compile the plugin without compiling dlls?
-
@DanSound No, I meant the template inside scriptnode itself (it's in the node creation popup under
template.mid_side
.Forget the entire snippet you've used before, and just create a new Script FX module with the basic channel layout, then click on create embedded network.
Just open the scriptnode workspace, click inside the chain to create a node and select the
template.mid_side
entry, this will create multiple nodes that get you going (you can then replace the white dummy nodes with the actual processing you want to implement).When it's done, you can enable the compile flag and export the dll.
-
@Christoph-Hart Found it, thanks a lot! Looks like my super simple idea of making M/S processing plugin will lead me to learning Scripnode :beaming_face_with_smiling_eyes:
-
@Christoph-Hart said in Question about Mid-Side Scripnode snippet:
@DanSound This snippet precedes scriptnode and uses HiseScript for DSP (which is not recommended anymore at this point).
To make a Mid-Side Eq, can we combine the Parametric Curve Eq module with scriptnode?
Or will there be a Parametric Curve Eq node on the scriptnode in the future?
If there is no competitor for this with the scriptnode, I will continue to use Hisescript for the mid-side feature.
-
@Christoph-Hart It looks like somehow I need to insert Parametric Curve Eq module between encoder and decoder because there are only one band filter nodes in scripnode and making full featured EQ in scriptnode is definitely not what I want :)
I have an idea is to split the signal on Mid and Side using decoder + ms_splitter + routing matrix nodes, then insert two Parametric Curve Eqs - one for Mid and one for Sides. And then add another sciptnode with encoder node. Basically I'm making the initial snippet but with scriptnode.
Just want to confirm if that possible with scriptnode and I'm thinking in the right vein.