Scriptnode use global modulation
-
Hey I would like to set up a global modulation system for my project. I have a Scriptnode Network with my Effects and would like to add Sample Accurate LFO Modulation. However I do not want that modulation to sit in the network itself but as a global modulator so I can modulate other stuff as well.
I've found this preprocessor flag which lets me add modulation slots to a Hardcoded_FX however I am unsure on how to actually use that one in my Scriptnode Patch.
NUM_HARDCODED_FX_MODS=2
Does someone know more about this feature? Basically I am looking to use dynamic routing for my modulators so I can assign them to the knobs in compiled scriptnode patch.
Here is a Snippet. Make sure you have compiled HISE with this flag:
NUM_HARDCODED_FX_MODS=2
HiseSnippet 1974.3oc4Z0saaajElz1iSrqy1jtNnKVzBPrXAhCZVCSGGmjVrHJV1JwnV1BVJtAnWDLlbjDqImgK4PGqVr2u2sW22p9HzWfEXeC5dNbHEGJKaqH63FkUFvPy4blgey4+YnZDIbXwwhHCy4Z0KjYXt.oYOtra0tTOtw1aZX9Ij5B2DepDDZidgz3Xlqgo4zu.EvbtYLR+7ee1FTeJ2gUPxv3.gmCaGu.OYA0FU9VOe+ZTWVKu.MoWqx1NBdUguHA.yzjULBoNGQ6v1khhMEwvb1sb8.TzTRkrXCyY1P31qYWwa4J4OvK16PeFNv1nIrPJx0D9tHhQpFU65461HeSGa.KZiBUvzJUvhj5dtd8oWnJtcJCqhYnqOLmpL7ltD7r0g2JZvaHPxTCRynfzcHMch7BkEbTlls4RVTaJn10ghRVioNwjTU.RvkKGPOhUKBFzeFKs9Jq7.K3e2+aledP0GKsNlFY8BewgT+8EIROdm5TNXAhr96Vaw63wYK2gIGl.KAqwfKQUJragYNL4w0Ik+R2CzUx6gPPaVKCqEm4HaITD66.tz81o1d126AVxnD18+l1IbGomfaI36Jjr83Kc+4+o4ma9+47VCxpc6gxCUOQBeebKLD1nKZz4Mwk3IAGxhd.ru8ADkKHX2J6LPNamAceUGk0RSPAeatmbuPF+r7fMxLwv2d01aRkTzCJiFHWHKR5gPvbS1wP3nxeZNxlr3ijhPHf7TNa2tHhW22GC3yX.5fRNbnSEO1S1SOgv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ODJmccbgCmtom+LYf6Rse2EoJmu77Z+3bt2+eYTu2+vQ9d+GrU0ql9.m48087es5C+GOkYJ9CgFquiBxDBzmZ1Y7R6X8Bg1FdgBeZDdtpZQr+QBi6nw+lUP+ksKb2p7uq7cziYsEQAYmpp+JsCqCnNzozhEDJZ1i6n6Z1LPHjcgvuxdgKVYGgHbKN1dtq9hznKMFe6AwLYokAV1VB0Ixph2koNys6vEQL0ajPmd0jX3bz4afzS.fmOVcbfumr9ZKCeZ+U3+eZU3eObuqlwWcGbXXWg7Y3mB1eq9lbzc8C7pCJD22IbB.wm6q3X5OhdEGe3Va8tps6mPvf5z2ad5l8tj7fbqWvfBnm9RCduWDcOGI.gVQTdbnHlYquxCvaUcdaxjI7xhqHURJb6UC1d154pyItpNwFTdoECFWZkpilo7g+5yTYfaxfci6dwNvlkNv0w1HwOl8cdtxt15Srf7p5jwKOavR.W59Ktd+cDbM2i7k8s7d07ydXtbL1zCe4AawOl4K.JHF+Lxlr1zDeYN0xgV0EbQ9qCqvnuOCxHzoCq7U6OrMzykRpd87EqrOymAcATP5uVYGnuXZT8z6terzE1uy+DPFp85OQTvUcSkeb714++zRWibDJjxbxwR+4DHM9pVolaqe+s2WG8Gbc7LBnNQh23n9MRfILtYJEXeyS+4xMGoNN1x133AeanAPom233TdoN0DWcbm3CG2It13NwGMtSb8wchOdbm3St3IhcFj89Vw3DnCoFaoNgnY+imZNsw+CPJHtSA
-
@oskarsh I'm not sure you can compile a script fx with a Global Modulator node in it - but I haven't tried that Flag. Think @Christoph-Hart might need to clarify here.
A workaround is to import the LFO template Christoph made in the tutorials folder (or roll your own) and script the UI controls to control both a Global Modulator and your LFO in your script FX.
-
@DanH that's a good idea. However when using random values in a scriptnode and external modulator the values would not be the same. I think @Christoph-Hart can share some wisdom here :)
-
@oskarsh generate the random value in your script and then send it to the relevant controls?
-
@DanH Yes, I could use global cables broadcasting the values from the Scriptnode so they should all be the same. I guess the values received by the global cable will not be sample accurate tho.
In general I would really love to use the ModulationMatrix system. Its much easier to display the Modulation amount for a Knob and I think that is the proper way how this should be done.