How I tell an instance of a ScriptSynth to load a particular DSP network?
-
@Christoph-Hart - is this actually possible? Been trying again, and was not able to figure it out.
-
Don't suppose anyone knows how to tell a script node synth or a script node effect to load a named network???
-
@Orvillain Not to my knowledge. It is certainly possible with the HardcodedFx Module using
SlotFx.setEffect
, but that doesn't translate to the ScriptFx. -
There is DSPNetwork.createFromJSON() but I don't know how to get my DSPNetwork as a JSON chunk.
I'm assuming if I did have that (rather than the raw XML????) that it would be a simple affair of getting the network reference and then feeding in my JSON.
That might be one way to do this.
I'm not trying to do dynamic loading of networks in my plugin or anything. I'm using the Builder to construct my module hierarchy, and I want to auto-plumb in some premade DSPnetworks.
-
I guess I probably am required to make one, compile it, then use the hardcoded effects and the .setEffect call.
-
@Orvillain Ya it would be easier to just use a hardcoded version but I think you are touching on a good feature request. It could definitely expedite the development process a bit. I see you can attach the ScriptFx to an external script, so possibly you can do it there but I have no idea how to implement that.
-
Consider it a good thing that this missing feature nudges you towards using hardcoded FX modules :)
-
-
@Christoph-Hart said in How I tell an instance of a ScriptSynth to load a particular DSP network?:
Consider it a good thing that this missing feature nudges you towards using hardcoded FX modules :)
Only if it nudges you towards increasing the parameter limit for hardcoded effects.
Some of my basic nodes can have 40-50 parameters. -
@Dan-Korneff said in How I tell an instance of a ScriptSynth to load a particular DSP network?:
basic nodes
Nope
-
@d-healey Am I the only one that ends up with networks like this?
-
@Dan-Korneff .... you just might be
-
@Dan-Korneff Im almost there with this one and Im not done yet...lol
-
Guys you know you can fold nodes?
-
Yah! Double click headers boiz! You'll discover magic!
-
@Dan-Korneff When it gets to that point, I'd rather write a custom c++ node!!
-
@Dan-Korneff said in How I tell an instance of a ScriptSynth to load a particular DSP network?:
Am I the only one that ends up with networks like this?
That's a work of art
-
@Orvillain Those are almost ALL custom C++ nodes. I just need a ton of parameters exposed for tweaking
-
@Dan-Korneff siiiiiiccckkkkkkk
-
@Christoph-Hart Even with folded nodes, I have an onslaught of knobs at the top of the container.
Luckily, I have a monitor just for the DSP network.