Default Knob / Text And Value Font Size/Style



  • Hello Music Lovers
    As The Title Clearly Says. Trying To Change The Default Knob's Text Font And Text Size, Any Idea?

    Found This In Forum, But Seems This Command Not Engaged In Json Properties!!! Or Might Be I'm Wrong!!!

    const var StepsKnob = Content.addKnob("StepsKnob", 432, 167);
    // [JSON StepsKnob]
    Content.setPropertiesFromJSON("StepsKnob", {
      "width": 61,
      "height": 59,
      "max": 32,
      "bgColour": 0,
      "itemColour": 0,
      "itemColour2": 0,
      "style": "Vertical",
      "stepSize": "1",
      "fontName": "Tahoma",   //   <<< This 
      "fontSize": 14  //   <<< This 
    });
    // [/JSON StepsKnob]
    const var WaitKnob = Content.addKnob("WaitKnob", 367, 168);
    


  • @Natanr If you look at the property editor of a slider, you won't see these properties. It means you have no access to them because all components don't have all the properties available in Hise.
    Your best friend here is to attach a label to the slider's value. This way you'll be able to customise it to your taste.



  • @ustk
    Okey I Managed To Show Value On Label
    But, How About The Sufix, HZ... dB
    They Don't Show Up?!!!



  • @Natanr control.get("suffix");



  • @d-healey Thanks Sir David
    I Used Your Script
    But Where Should I Put This Command ?!!!

    control.get("suffix");
    
    const var Label1 = Content.getComponent("Label1");
    const var Knob1 = Content.getComponent("Knob1");
    Knob1.setControlCallback(Knob1CB);
    
    inline function Knob1CB(control, value)
    {
        Label1.set("text", value);
        Label1.changed();
    }
    


  • @Natanr

    Label1.set("text", value + control.get("suffix")));



  • @d-healey Thank You Sir 👏



  • Hello Everyone, Hope Y'all Doing Well

    After Connecting Delay Feedback L/R Knob To A Label, The Showing Number On Label Doesn't Match The Value?

    Any Idea?!!!

    HiseSnippet 1117.3ocuV01aaaCDlxIrs1ctXcnXXeTv.CPAqKvturUfhh5F63MiljZTmVzuUPKcJlHTjdRTswqHee++1ef9SX+C1NRJaIm5zFXfNAj.y6tGxGd5tmSiRUgPVlJk3U+34y.h22PGOWpm1aJiKIC6S7tE8PVlFR8cl1a9LVVFDQ77152LF7puMw97OOcOlfICgRSDxqU7P3.dBWWZcT2my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Zt7jCYX2FdtzixSFieDVHfu6jRbP.ZyqlQzystsYsgDiAYjcw+hOEN6XV6U3ryBm+ubFIrvT0aKFdZJEtg0Bduk1OgrN9sr3Z+k5vTT4qsQNh+1vPSA5OiE2qGy81.L2eCv7fM.yC2.L+xFf4W2.LO5yhw70zOKWqRbhWngQ6amG54sujgUu11Sx+ABtJYmC
    


  • @Natanr use:

    * 100 
    


  • @ulrik That Did The Job, Easy Peasy 👌 👋 😁



  • Looks Like This Is Not My Day!!!:(
    Just Came Across With Another Question!
    How About Tempo Sync Value!
    Sync Delay Value.png

    Here Is The Code:"

    Content.makeFrontInterface(128, 128);
    
    const var Delay = Synth.getEffect("Delay");
    
    const var Label1 = Content.getComponent("Label1");
    const var Knob1 = Content.getComponent("Knob1");
    
    Knob1.setControlCallback(Knob1CB);
    inline function Knob1CB(control, value)
    {
    
    	    Delay.setAttribute(Delay.DelayTimeLeft, value);
    	    Delay.setAttribute(Delay.DelayTimeRight, value);
    	     
            Label1.set("text", value + control.get("suffix"));
            Label1.changed();
    }
    


  • @Natanr You can make your own lookup table


Log in to reply
 

13
Online

648
Users

2.6k
Topics

21.5k
Posts