Global access of values if using Faust node
-
I made a little RMS Analyser Faust code that works fine in my script fx but obviously I wanna get the value on my UI or use it for calculations in my script. Usually I would use a global cable for something like that but as far as I understand / tried, I need to compile the whole network once I use a Faust node. Is there something that I'm missing right now on how I could get the value into my script?
-
@ps If you compile the network containing your Faust node, the faust node itself will also be available as node (it will be compiled like any other third party C++ node).
Then you can connect it to a global cable, then you can use it in an exported plugin.
-
@Christoph-Hart yes that works fine in general but if I import the compiled node through projects into a new script fx I don't have the modulator there anymore to fetch the value (sliders are no problem).
-
@ps Yes that's correct. The modulation outputs are not registered if you load the faust nodes directly.
What you can do is to add a
routing.public_mod
node, connect the faust mod source to its value parameter and then export this network. This will create a node with a modulation output that you can use with a global cable. -
@Christoph-Hart ahhh. I forgot about that node.. Awesome! Crazy how many possibilities we have now inside hise with the Faust integration. This is really some major stuff! Once midi out is working in the daw there’s nothing to wish for from my side I guess haha
-
@ps said in Global access of values if using Faust node:
Once midi out is working in the daw there’s nothing to wish for from my side
Time stretching ;)
-
Just FYI, I've pushed a change which enables multiple modulation sources in faust by declaring multiple
hbargraph
/vbargraph
primitives.This will most likely break your existing networks with a single faust modulation source because the data structure is very different for multi-output modulation nodes (which is why I've implemented this rather now than later if many people are already using it).
If you want to propagate multiple outputs you can use the new
packx_writer
nodes which just write the values into a slider pack that you can access from the outside. -
@Christoph-Hart works great in HISE - just tried to compile a little test FX plugin with following fail in the languagemanager.cpp:
Use of undeclared identifier 'FaustTokeniser'; did you mean 'LuaTokeniser'?
and
No member named 'getAllFaustKeywords' in 'juce::LuaTokeniser'
-
@ps Yeah I keep breaking stuff with this class... It's fixed now.