HISE Logo Forum
    • Categories
    • Register
    • Login

    change knobs via script

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 448 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BWSounds
      last edited by

      Ok so... Is it possible to change sliders via script? (other slider in PROJECT FOLDER)

      Im working on a project that will enlarge a certain part of my plugin and I will need a bigger slider but, I don't want to just code it to do the same thing because its a LOT of sliders and if I can find a work around that'll be great.

      Hopes this makes since to someone haha.

      d.healeyD orangeO 2 Replies Last reply Reply Quote 1
      • d.healeyD
        d.healey @BWSounds
        last edited by

        @BWSounds Do you mean change the filmstrip applied to the slider?

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        B 1 Reply Last reply Reply Quote 1
        • orangeO
          orange @BWSounds
          last edited by orange

          @BWSounds You can set scale factor of the knob.

          For example if you want to make the knob 50% smaller:

          Knob.set("scaleFactor", 0.5);
          

          If you want to make the knob its' normal size:

          Knob.set("scaleFactor", 1);
          

          develop Branch / XCode 13.1
          macOS Monterey / M1 Max

          B 1 Reply Last reply Reply Quote 1
          • B
            BWSounds @d.healey
            last edited by

            @d-healey
            yes

            1 Reply Last reply Reply Quote 0
            • B
              BWSounds @orange
              last edited by

              @orange
              wont work in this situation because im using a custom slider

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @BWSounds
                last edited by

                @BWSounds You can scale a slider that uses a filmstrip. Just make your film strip twice as big. So if your normal size slider is 100x200px, make it 200x400px. Then it will scale up without blurring.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                B 1 Reply Last reply Reply Quote 0
                • B
                  BWSounds @d.healey
                  last edited by

                  @d-healey
                  ok, so I make a new slider 2x bigger but, how do I add it to the project without replacing the original sized slider? and by slider I mean a actually slider not a knob, I can see that working perfectly with a knob.

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @BWSounds
                    last edited by

                    @BWSounds A knob and slider are the same control so I'm not quite sure what you mean.

                    Anyway you add the 2x image (which you should do for all of your filmstrips if you allow the user to resize the UI). Then you set the scale factor to 0.5 by default. If you make the slider larger then you adjust the scale factor to match.

                    Another way to do it is to have one larger slider and when the user open the window to make it visible (or however you have it set up) you set it to control whatever the small version was controlling. This way if you have for example 10 small sliders that all need a big version you can use the same big slider for all of them (assuming only one big slider needs to be shown at a time).

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

                    B 1 Reply Last reply Reply Quote 1
                    • B
                      BWSounds @d.healey
                      last edited by

                      @d-healey
                      ok thank you, I got i!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post

                      13

                      Online

                      1.8k

                      Users

                      12.0k

                      Topics

                      104.4k

                      Posts