HISE Logo Forum
    • Categories
    • Register
    • Login

    Set step size of button for pluginParameter ?

    Scheduled Pinned Locked Moved Solved Scripting
    7 Posts 3 Posters 280 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.
    • W
      WillDevelop
      last edited by

      Hello HISE community,
      I am currently creating my first plugin in HISE and wanted to ask if it is possible to set a pluginParameter stepSize for a button, because if I want to automate a button in Reaper, I can not only switch back and forth between 2 states as with other plugins, but it has a range of 100 and if the value is greater than 50 the button is activated.

      I hope the pictures make the problem easier to understand.
      I only want it to be able to switch back and forth between 2 values

      Thanks

      0408ed17-fb77-44b4-b11f-ec7134a0d216-grafik.png

      a311bbfc-7e09-44a1-b00b-26492bf808b9-grafik.png

      f0ba6758-0555-4ce3-9b05-af66d9328cb4-grafik.png

      clevername27C 2 Replies Last reply Reply Quote 0
      • clevername27C
        clevername27 @WillDevelop
        last edited by

        @WillDevelop I'm not sure what you mean by "automating a parameter". Do you mean by sending MIDI or OSC out of a HISE plugin?

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

          @clevername27 he's referring to parameter automation

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

          1 Reply Last reply Reply Quote 1
          • clevername27C
            clevername27 @WillDevelop
            last edited by

            @WillDevelop If I understand correctly, you want to quantize the value a value you created in your DAW for a parameter in your HISE plugin. If that's the case, do it, and assuming it's MIDI CC data, you can probably do this manually in your MIDI callback. Intercept the data as it comes in, perform your comparison, and then change the CC value there. (Anyone else?)

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

              @clevername27 said in Set step size of button for pluginParameter ?:

              assuming it's MIDI CC

              It's parameter automation which is separate from CCs. The problem is on the HISE end I believe. It gives a larger range of values than just 0/1 for buttons.

              Here's an example of how it shows up in Ardour. This is a button on my UI called, Activate which has an on/off status, but the automation is showing up with a range of values.

              Peek 2024-04-28 16-45.gif

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

              W 1 Reply Last reply Reply Quote 1
              • W
                WillDevelop @d.healey
                last edited by

                @d-healey That's exactly my problem, but if it's due to HISE itself, then there's nothing you can do about it, right?
                It's not that bad anyway

                @d-healey said in Set step size of button for pluginParameter ?:

                The problem is on the HISE end I believe

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

                  @WillDevelop said in Set step size of button for pluginParameter ?:

                  then there's nothing you can do about it, right?

                  Open an issue on the github page and link to this thread.

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

                  1 Reply Last reply Reply Quote 0
                  • W WillDevelop has marked this topic as solved on
                  • First post
                    Last post

                  31

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts