How do i display a scriptnode modulation on my UI via Slider/Knob
-
I had the clocked ramp in my first example, this one moves without pressing play
HiseSnippet 1352.3ocuW0raabCDlqsnisyOMoHnm0gdvAHPPx0IME8PT7esBI1YQVWijSFz6RYwpcIWvkJ1pEEnGKPOzy4VeM5s7.zGlBzGf1Y39G2HamD0lHewjblgeyLeyLb80pPdVlRS7V4foobh20nASklQaMhIjjAaS7nzy139jMmlxxx3QDOuE+F7HuUZQr+9qGtIKlIC40aQHGpDg7mHRDl5c86+XQb7trH9AhDGo2n+fPkbKUrZB.iEocIorvwrS36yPwVfR7VZmHgQoCLLCOi30ZSUzzfQpSk4xenHSbbLGWziD.FJe6cUwQHhwcIaMRDG4W5tYDvJ90N+h4N+so6IhDU6WGDto8f10Z3FO7VnI7VrA754ButNv6bfjmCjZkCoaQCB0hTS8IHdtJcfzv0CYPX2EJ4xR7dMcKEHfzzIgMluqFVTovZ2qa261d8tcuyWObhLzHTx1J49JC+ox0typ+3pqr5OsZ627ngCO2yvqQqhi45y8XLSquLEWSNI4Xt9tseIKdBuRPv8aFSoWbL0MkGl60NBpjCjBySS4xKhHPJBUP7egBTAhZrQ+aTD8ChEQbMQ.A4qPerTcbOhEvtbdRkxsxU9SanrOPpsF35z5MpLC0CsPDyvHdeB8Ac1YhP8Ucr+Hjuav13APBt.p.7S4Zi.iLdayeITrkyVVgtMOarQkZ8kjTkDcLukeqdyYUdxOOr+zZ25y6mY3oAhef6Vwmvpkmrd+zxn4.vhKS2SE0d2mCUwZn.FHcCr2yAb.NXPpBUW48HL4beuvEeu3Bt7SEQlQUh8Zc+QbwIiLtJRlsX6ln5ShYll09XCuhC.xaiBNrpRlILScCO+u0P3cEh2h5KLgiNeLtv4fQjq+A.iEsQuNcmgC4glZ.1hB4jO78Lo42+pELJ3NwKuhT3Bf8mjTyuvFLdK.9RY+yegV2qJUyApL+.keLa5ZYrjzX9y.Te21GGqBGi0Fy1fqfUtIJwZgiXRIONad5Ctz6bbp2kmldlZhQHOYOlQKfpIJF.fItg7sJPWYLnXc2xlRAbYjcw+.+JNrGt1q3vdkGV2IkrO2bpRO1lfJ9enfOOajnhNZ3YjGEGqNEaGHJ3r4NDWmYWbEZ2Nve4h4qhmlNRIEgXtKWoRf+nD0DrcRN5+VV1ALQLx6CljAs8idpL.D19.Ej2suJB9uk1kEBg0o9LrMwsn3fCfrx0cBqHsUHsl2XYiPz2ur2VVNpQiV9Bl7nFfwDaWN78KKhmiwhhamhleUz742VCvbaGvTIQSH7tdcdNW2RT.xoMupqBWkl2wdPihiK29sbl+PH0ccNfoOgaxJFTI4g4oUqSicmuAEeY25GcpV.gNhu6.hkoGhL+d4SHh4mUNxaaQVJT3s4DnkRdAeicHX+sH9YkbvcfxnH3YeV0K4kNoKH5TsBBJ6IjG5LH+2e0q9iGtG6rCaLbu+u0On4TPqbAi4mlGNca9iw5qQ84ZgJx9PWGa82KQ9yesO4R.f82L..LavLigghuKD.Wk9DkJEZZnMjYL+Gg6eIXlogSlwJMxDDWZjsONtZJlQswvAYGhmFxhKMDTg6vneC5TCl8mYKhfFqcZHy6UYTq2fI5NunwRWNHZklbP74bc99mmV8btFrwEbRFspSFTr6mShfR6Aqy6JUTn7nIFUBDksy3IyoYVmzPRxaqx9+dBbSkZbByNZXtdX6GkAYIrPs5nBJD5bKa2AnMR6GktBcObc6y4y.RfOT7nvvllZFEWedU7KlWE2XdU7dyqh2edU7KmWEevaWQ763KpbvgS.I2em75TucjL3oT1Afj+EDX.dZB
-
Use the a global cable that's precisely what they are made for:
HiseSnippet 1507.3ocuX0sSabDEdVfgDbIoIUQQ8xUQ8BGIpqcBgFonp.XfDqTSrhcPMWQG1cr8HlclUyNFvsJR8x9rzK6SPunpOO8MH8blcs2cASB0oola7Lmelu4LemeLcL5.dRh1P7Vo23XNwaUZ2wJ6vlCYBEo0NDOJ8r02fr83XVRBOj34s3yPQdqrDw84ue51LISEvy2hPNPKB3euHRXy2syluPHk6wB48DQEzd8MaEnUM0R8H.FKRqShYAGyFv2mgps.k3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iGpUh.7sK0nI.eqH8HrbRJ5eNKoGSHQde2QIPQ+vWp5BJ6lRC4c66JOs7dr.HrNtCCKSbaJ11.HqPuxfoj1oHMm23XiPzuyjBeIonFc5jw3RiZ.FibU4vg3VDkiwhrSmhtuB59zSqDXtSAvLUixP3pdbdENtUoAHY7P.3wjKb6M7ZED+u5zVJurSOlAlqIIqGkhGj9t5t0X44aRG3Fs5v.bXIRmxsObivj1gPxOaRytcDIwPh21ifRJoI7k1AV2RExOCqw70Py8BuL.ZmtB9dagJ8Df45QhUa1YYqWl13wvFcs7XLaFUnArFiZSZpcP4lze4ljKy0MNuq23Rb8pz1ijVQrT.9Xp4qCRIWMXm5pY45aP2JLrmtqXfhIIkL+i12qRecLLgBuMRsJo8U10O3RbcEXzdfXJNgedLmOoS4W3RRbsBvUPitERgZqjCPoA4QAnHQgjhyQHKkVbWpIsjYsR5TpIRgLiUV9298m+tKlK9APXg7jLDtJM+2.PHyH4pLG2qPT+Z4Q87N84Q97ITxi94508X9ooAfhZllDj5fK3lsFY0Q.WvMlwG+Cy1Z8wQLWWi4ZZ2+W5wEwBL5CCRaaiWtq61AdoUtez9Jz13Z+YLXeD7CoOLHnrqtfgOXdM7gyqgqOuF9n40vMlWC+140vG+gMD++bjwnwzQHyoytNRnm2tJL22kyS9G130.3.
Then you can attach a (asynchronous!) callback where you update your UI:
const var gm = Engine.getGlobalRoutingManager(); const var mod_output = gm.getCable("mod_output"); const var Knob1 = Content.getComponent("Knob1"); mod_output.registerCallback(function(value) { Knob1.setValue(value); // or whatever... }, AsyncNotification);
-
@Christoph-Hart thank you i have not used global cables yet i will have a look at this :)
-
mod values. @Christoph-Hart how can i solve this without getting rid of the global cable functionality in my vst?
(started replacing my global cable with a sliderpack to paint the values to my interface but i could not figure out on how to apply a filmstrip/dial to my slider receiving scriptnode values)
-
quick bump of this topic, i am still looking for the best way to draw my scriptnode modulation to a dial on the main UI.
@Christoph-Hart did that with global cables but it seems it looses this functionality when exporting?
HiseSnippet 1507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OAXLqWxMn61uOOvlCvknvaxm9FGzzyuRFiBNS7vmRJJBf8GEkyuvxKdK.2krlHd+JMuRUrgC7bdOcGIab0DVTrj+J.0q4ejTGbbWfgewxaYrxsQMpFLjoTbYx7TEb4qbbpw6+YZZ6LqQ.YSTL..icDvalgtIwfr00w0HSoKWE5V7N3SlvF3ZuLgMlHLuNJYet8Ts4X2CT12gD9zWCrEW+yHaIk5SwxAhLNa5EhaRbKtFsdM3uT05nkiiGpUh.7sK0nI.eqH8HrbRJ5eNKoGSHQde2QIPQ+vWp5BJ6lRC4c66JOs7dr.HrNtCCKSbaJ11.HqPuxfoj1oHMm23XiPzuyjBeIonFc5jw3RiZ.FibU4vg3VDkiwhrSmhtuB59zSqDXtSAvLUixP3pdbdENtUoAHY7P.3wjKb6M7ZED+u5zVJurSOlAlqIIqGkhGj9t5t0X44aRG3Fs5v.bXIRmxsObivj1gPxOaRytcDIwPh21ifRJoI7k1AV2RExOCqw70Py8BuL.ZmtB9dagJ8Df45QhUa1YYqWl13wvFcs7XLaFUnArFiZSZpcP4lze4ljKy0MNuq23Rb8pz1ijVQrT.9Xp4qCRIWMXm5pY45aP2JLrmtqXfhIIkL+i12qRecLLgBuMRsJo8U10O3RbcEXzdfXJNgedLmOoS4W3RRbsBvUPitERgZqjCPoA4QAnHQgjhyQHKkVbWpIsjYsR5TpIRgLiUV9298m+tKlK9APXg7jLDtJM+2.PHyH4pLG2qPT+Z4Q87N84Q97ITxi94508X9ooAfhZllDj5fK3lsFY0Q.WvMlwG+Cy1Z8wQLWWi4ZZ2+W5wEwBL5CCRaaiWtq61AdoUtez9Jz13Z+YLXeD7CoOLHnrqtfgOXdM7gyqgqOuF9n40vMlWC+140vG+gMD++bjwnwzQHyoytNRnm2tJL22kyS9G130.3.
-
-
@Christoph-Hart i will try this one. I did the compilation with the old example you did
-
This post is deleted! -
@Christoph-Hart some progress the hardcoded master FX gives me this on compile at least the left one is working, thats just the display buffer of the compiled node. Global Cable is not working for me.
both worked well inside of HISE tho.
-
@Christoph-Hart Are there any steps/tricks that are crucial for making global cable work in a compiled vst? Everything seems to work with the compiked nodes inside of HISE but after the export its like the global cable just got ignored.
-
@Straticah are you using the latest develop? I've added support for global cables across the DLL boundary at the beginning of 2024.
-
@Christoph-Hart i am on 3.6.2 dev branch from April, i thought i have read that you added this functionality so i was quite confused when it did not work on my end. I also dont get a global cable error like on the old HISE build that did not support that functionality. I will redo the process a few times and see if something in my workflow might cause the error. Thank you for your time and help tho! :)
-
i just got it to work!
The problem was that i compiled my scriptnode as dll.
Also, saving the node will make it impossible to build the vst without manually compiling.
So dont save Scriptnodes that contain global cables.
Dont use Hardcoded MasterFX on nodes that use global cables :)
-
-
-