Stop Start Script?
-
Hello Everyone
Wondering Is There Any Commands That We Can Use To Stop The FX Plugin As Soon As The DAW Stops And By Pressing The Play On DAW Fx Plugins Runs Gain?Trying To Stop The Fileplayer Node, When The Daw Stops And Avoid Playing The Looping Samples
Any Help Is Much Appreciated
Thanks -
@Natanr I never used it, but have a look at
Engine.getPlayHead()
-
@ustk Thank You Sir
But How This Works?
Any Example?There Is Not Much Information On Documentation
getPlayHead
Allows access to the data of the host (playing status, timeline, etc...).Engine.getPlayHead()
-
-
@Natanr did you figure out something how to do this? I made it by triggering gain from -100 to 0 when incoming signal is != than -100. It's not perfect solution because it's using timer and there's 30ms delay.
@ustk I tried to figure out something using content from your links but without success.
-
@arminh No Glory Here mate ( Any Chance To Get A Sinppet Of That 30 Ms Solution? )
Would Be Great If Anyone Can Help With This -
@Natanr sure I can show you snippet later today
-
@arminh Thanks Bruh
-
@Natanr You must put scriptFx over MasterGain(simple gain) plugin.
const var VUPanel = Content.getComponent("VUPanel"); var MasterLeftValue = Content.getComponent("MasterLeftValue"); var MasterRightValue = Content.getComponent("MasterRightValue"); const var MasterGain = Synth.getEffect("MasterGain"); VUPanel.setTimerCallback(function() { var leftValue = MasterLeftValue.setValue(Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel(0))); var rightValue = MasterRightValue.setValue(Engine.getDecibelsForGainFactor(MasterGain.getCurrentLevel(1))); if(MasterLeftValue.getValue() + MasterRightValue.getValue() == -200) { NOISEPLAYER.setAttribute(3, 0); } else { NOISEPLAYER.setAttribute(3, 1); } }); VUPanel.startTimer(30);
-
@arminh said in Stop Start Script?:
Excellent Job
Thanks Mate -
@arminh
This Is Good If We Use It As A Follow Effect, But Not A Solution To Stop The File Player.
@ustk
@ulrik
@Christoph-Hart
@d-healey
Any Idea?Snippet:
HiseSnippet 1845.3oc2Y0raabCDlqkoQrSbZRZZQOUrHnGjQSLjb9q.EoQNVRAp0xVPxIo4T.8JJIBuhb6tTNQMH.4MnmauzWg1i8PAxKPAJPeQxa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