Sliders Value to text



  • Does anyone has an example of displaying the parameter result of any slider being moved to a text label or something.

    Let's say for example I'm using an EQ as my plugin but every time I touch any of the many slider/knob within the plugin it the "value" will be display in a text label

    knbGain1
    knbQ1
    knbFREQ1

    knbGain2
    knbQ2
    knbFREQ2

    I don't know if it make sense.



  • my example using two knobs (and not a label to show the value) to have a knob for selecting the waveform, and one knob (transform as dropdown) to show the waveform.
    using this film strip to show the waveforms:
    0_1542026775825_Wavefroms.png

    the script:
    const var Knob3 = Content.getComponent("Knob3"); // the waveform knob
    const var Knob4 = Content.getComponent("Knob4"); //the png sequence
    // Osc1
    const var Osc1 = Synth.getChildSynth("Osc1"); // the waveform generator.
    inline function onKnob3Control(component, value)
    {
    Osc1.setAttribute(Osc1.WaveForm1, value);
    Knob4.setValue(value);
    };
    Content.getComponent("Knob3").setControlCallback(onKnob3Control);

    if you want the real value from a label it's slighty different...



  • Just use Label.set("text", Knob.getValue());



  • @d-healey don't know how to use it



  • @jay Replace "Label" with the name of your label and replace "Knob" with the name of your slider. Put it in the slider's control callback function.



  • @d-healey I got a script that works for showing the value of the knob in a text field, BUT when the slider is linked to a parameter it doesn't work (it doesn't update the value within the text)



  • NEVER link the knob/slider/etc. to a parameter ID if used in group inside a control callback.



  • A little trick I found. Link the label to the parameter instead of the slider.



  • @d-healey I try it didn't work



  • So there is no way of showing the value of a knob linked to a parameter show in a text label?



  • @jay Wait...



  • HiseSnippet 896.3ocsV0saaaCElzwLsVatXEXW0qDxUN.cA1cscEHaqt1IovnMIFScE6tNZIJKhPQJHQ0F2h9N0Gg9Zz2h9FzdHkrkbhRZ8.ltRme9N5iG9wC0zTkOKKSkhvcdwhDFB+iDuERcz3HJWhlb.BeKxwzLMK0sv0nEIzrLV.Bi25oFG3NsQkOinBpzmU20KUbe1y4wbck2oCeFWHNhFvdAOtV12e3DekbrRnxA9rEoOJg5eFcN6DpIsVDDd6CC3ZUpmlpYYPNiTAK7hTuQVj+K4Y7YBlwX.xCJTgaz3HtHX5x0ZFBgaOsZkuUwJ+mIGyC3q7W0A9Ia.2JD06A3VqSo1qQoAWEkNRIBLE3JnGtF8ZWPuaS77S4I5pHFt8CjIRXyIjBs85zpHWTqOfIiUPFR8dwzyXGkBFqPz6g86eW2Gzu+t620oqCz7yztull59b5LlXf6e3tD6bldrJNQIAid6TDdmKh5YR0rqFjMpEi8s8xLQk5TkXLUHlA6z8rAFOpntbofKYtg4ReMWIcKC1yu.zcgOoHmsaWm200wEdJHkor81QyNWuyxL1es39QT4bVPuc2248qpsRdhRyNU1aWm24zw48NWLRXXSgJ4ufk1TTi3N8Zf0SlGOiktjlk4A62qKn196SP4WzzqknRNQx0mlvJsqjbCZPxgJ20.wWqRBBopsRuaUJ87D7.VJhCE4FD69Axx85G3QWDb2Rv19uE6MIE6EM.9umb.USMG.JoCPwDVpla5D3CXuFllTbbnC4.V1YZUhkukpLna8MY74HLAeG3asv7xigWh4AAB1TUF2rAUwm68wr7vPtA.wMXjYos5637MWbmupP+qX3hpp5M7M7.cj4i+IvLhwmGoMV+NXEBqZO9aq0T9ygIK2klDboowIzTX1HXahsMwNP1H9Wqod4YIvDMUPtfpWeLmAdY.Sin97DyLCIzfpsP97i2fYe8ab1WiBwuS5daxTt1OpY91pA9ZT1+Oy2xaR5RNLLj4qqHaaxQ+y+0qM1.p7WpbMWN+XpN0JaOIO1CtL0mALQJYhLiNqk4PZgceisUTxjAViu.OkAGXrwkAGrLHJl5mpdU4TXycU2z5A3jzdMcGPgB1tqNda3MbDi+JeeSi3W.l2Lh6swH90MFw82XDOXiQ7vMFwuswHdz0fv72JOIWqhKNV.NldncrJFenjBpJqBD8U.3lmtC
    


  • @d-healey thanks David



  • @d-healey works as expected, can you tell me what I need to add to make the label update if I want to use the same text but using another parameter?



  • @jay A control can only be assigned to one parameter, so you'd need to use another label.



  • @d-healey thanks



  • Is there a way to add it to this?

    HiseSnippet 3505.3oc6b07aaibEmz1LarRbpS1z1r.aaYL1h0Y27g3PpObyFXa4Ox513X4Huoa6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