How does "Script Time Varian Modulator" work?
-
I would like to adjust ADSR of the modulation of an effect.
I added a Script Time Variant Modulator in the effect but I have two problems:- once the vst is compiled, I can't load the plugin into the DAW if the script is inserted into the effect. The vst is recognized by the DAW (studio one) but I can't load it into the channel.
- if I compile the script I can't use it in Hardcoded Script Time because there is a channel mismatch:1
HiseSnippet 2388.3oc0ZssbabaFFTRPRT9Prcxk4hc7MUdpKCorjr8jo0TGs4DcfiIib6jKTg1EjDC2EfYAnjXR6L9MnWm65qQup4gnO.scldueCZ+A1c4hkjRjhRQ1kYlXhC+3+6G3+LU0PgKUJEgnb4q2qCEk6t3Z83pVa0hv3nJaixsHtZHURUnM60gHkTOTtby9Z8p4xOGx74CuZShOg6RSmBgNRvbo6wBXpzYqV9aX996R7n0YAV6d0xUbE7sD9ht.RlEWD0g31lzjd.QusYvnbyuiGSIBqoHJpDkatMEd8p0RbFOZ+GwjrS7o5AkP0fCJZ5cE9dZDqmEsUKluW0DIVhfSoZp7Oaj7+E38Ydr9ymdO7.yBNoTXeejalrva1LvqjM7JZAuQ.obVPZtHH8PbM2PVGU5JZ7bGbEthF1f.W61PIZunYNZV7VBXGbUg.Ra5tgvf9Tr75EK9TG3+8judou5qbfKeox4TRnSD05WmiHgLBWsuvqqOADsRN+VGipQglzzYW9wQT3nIwIlFmThdLv.MG1JjB2LNDGUHgK6HBUNsHbOeZ3RoLu+ZuIZIfi6vax3zBtFxqOv5KGe30aQcZFx7bbI99m.ZNNbJ0S5nDNmPcnbBb064zP.b.14d6dnlHXQYOtqCSIo9MzC0K55KbaWXoAQRAv.XGy47ZfOKqB6RepyKrXugNmy.saGt3LmNgzFzH1QOGty4D+3sHAUbWZAfHlTSb.E3DrQhxgHc7E7l5+cDDxj7ekxIrKmy3M0TtrdSauw6b53S5YjZlzQpDc5P8dBHVQnoqjZNMF29zzzCRllURgfmvxgOMRnBt5RNLvQ.bkoIN8VKfnbakRsPxTLAej2ff5iKnZPWdnEqZtu1IVhg60Fc4t5ywQvOPn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Gr0+PQl+3GhK6Qljga73hIYNWCp4wL3+BehWrjdbt3EKkr3sBOBHtghiciJLUaQsnYFPt4l+5jxi2WO1YveO5e93xALO1wttYOpgHbkg+MbmLBe1zR3pSKgqMsDt9zR3ymVBew3IT+GzUbxOZ6DHymp6DUaSt98SL2rn+Wj1t3N
-
@Mighty23 check if you left the allow compilation flag enabled.
There is still no warning for attempting to export a plugin if you have an active network with that flag set, and if you do export, it will either not load or not get recognised.
-
@aaronventure I can say that it doesn't depend on this (1st issue).
I recreated the same scrip node both in "Script Time Varian Modulator1" and in "Script FX" in both cases I tried both compiling and not compiling the script node. I think at this point it's an AHDSR or Simple AR issue
-
@Mighty23 What is triggering the envelope? Will you be triggering the gate from the script?
The time variant modulator is strictly monophonic, even in a processor context.
If you need per-voice envelope, use the script envelope modulator.
For some reason I don't see the parameters moving in the network when I move the UI knobs. The linking is broken? Try getting a generic script reference and scripting the controls instead.
-
@aaronventure said in How does "Script Time Varian Modulator" work?:
If you need per-voice envelope, use the script envelope modulator.
"What is triggering the envelope? Will you be triggering the gate from the script?"
I don't know, I have no output on compiled plugin? What should trigger it? I'm using "Simple Gain"@aaronventure said in How does "Script Time Varian Modulator" work?:
For some reason I don't see the parameters moving in the network when I move the UI knobs. The linking is broken? Try getting a generic script reference and scripting the controls instead.
do you mean to put them with .setAttribute? It doesn't appear in the options
-
@Mighty23 the envelope works by applying multipliers to the signal based on elapsed time as set by the parameters starting from the moment you reset the gate.
You have to be doing this in some way, presumably when you play a note. You can do this in a number of ways:
- setAttribute from script, into resetter node, into Gate
- midi node gate into gate (not polyphonic)
If the envelope is in the fx section of a processor, it'll automatically pick up midi and trigger the gate without you doing anything.
So it's kind of hard to debug your issue because I don't know what you're trying to do.
The snippet you provided will, after 10 seconds because that's the hold time, go through the envelope. Any time you reset the gate, you'll have to wait out the hold time and then it'll again go through the envelope.
But as I said, in this particular example, the linking via component properties isn't working on my end so the whole snippet seems bust.
-
@aaronventure Thanks, I've almost solved it. The remaining problem is that I get no output if I don't turn on "Gate". I have already inserted in the code:
ScriptTimeVariantModulator1.setAttribute(ScriptTimeVariantModulator1.Gate, 1);
My goal is to modulate the LFO Modulator's ADSR into Simple gain
HiseSnippet 2360.3oc0Z0sTakbDdDv.H7Ow16d4dwT9lHWwQqDFv10VNV7qspEvprXwI0dAY3bFIMEmyLJm4H.saRU7Fjq261WhbQtaeHxCPxav9Fjzyb9aNRBj.rAG4pLL+z8708zcOc2hFARGlRICPEJtW+tLTg6ha1WD1Y8NTt.UeCTg4wMBXJVHZs9coJEyEUnvzuQuZghyfLe90WuF0iJbXYSgP6K4Nrs497vrYaT6a4ddaQcY6w8s18R0p6HEqK8j8.jLMtBpK04HZa1tT81lBiJL6lt7PYPyPZHSgJLyZR29M6HOQDs+84J9gdL8fpnl.ihldKomqFw5YQq2g641HQhUHfKMxj+oij+uDuC2kmNeld3AlEHYTXqOJLUd3McN3U0FdUrf2HfTAKHMSDjdHtoS.uaX1JZ7bGbcQHKnEET61PIZunovyfWWB6PDV1mdDaq.XPJEkVoRkmRf+6IeyBe8WS.kuJjbLMfDQs91YeZ.mJB2Q51yiBhVUxqHFSixsYYyV5wQTPzjPhogjQzigCXgOwr+BXZYvvc0vv.9g8BYktnM9F3h6ojpZ9AJj0CXvXBkDFPEptxfPRGpv0iEXILoq81nk.IXSQatfU1wP9dCrdoXluWGFoc.2k3P87NDLzIBFyUQBkjCYDlfBVJtjVR3Dfct8VuSSDrnpuvgvCULuV5g5Ec7jNGUdgAQhVr2zvm2.mSovfdfr8Bqi2PG4DvYjHjmP5FvZwhNN1ofIhf5EuEE3Q5vJCDwUZh8YvIAajFRnJhmTzV+yQPHWI9sgjfdBAWzVSYI8l1X0OP55Q6ajZthnBkc6xbeBHVQnomhY3FWXyMM8fjoOJkTJRNxg4FMHDTcILChaApLMwYZMeZnSmLpkJdHWJFoFDLGc.KDVogVrgQesYrDC50V8DNZ9Pjhckgr2IJ8jE9wEJtveaAxfK0p0HWS6qFH8LlIiXYsQavEQXI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