HISE Logo Forum
    • Categories
    • Register
    • Login

    Sliderpack MIDI control / plugin parameter

    Scheduled Pinned Locked Moved General Questions
    10 Posts 2 Posters 438 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.
    • P
      paper_lung
      last edited by

      Hi all, is it possible to make a single slider in a sliderpack available as a plugin parameter or MIDI controllable? I'm only showing one slider in my pack which is linked to the arpeggiator note length.

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

        @paper_lung Why not use a slider and connect that to your sliderpack slider via control callback?

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

        P 1 Reply Last reply Reply Quote 0
        • P
          paper_lung @d.healey
          last edited by

          @d-healey I did try that but maybe I'm missing something?

          const var Knob1 = Content.getComponent("Knob1");
          
          inline function onKnob1Control(component, value)
          {
          	SliderPack1.setValue(value);
          };
          
          Content.getComponent("Knob1").setControlCallback(onKnob1Control);
          
          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @paper_lung
            last edited by

            @paper_lung

            SliderPack1.setValue(value);

            How will it know which of the sliderpack's sliders to set?

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

            P 1 Reply Last reply Reply Quote 0
            • P
              paper_lung @d.healey
              last edited by

              @d-healey Good point hah, how do we set that? Looking at the API, I'm unsure where to start.

              P 1 Reply Last reply Reply Quote 0
              • P
                paper_lung @paper_lung
                last edited by

                Maybe Engine.createAndRegisterSliderPackData(int index) ?

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

                  @paper_lung Type sliderpack into the API browser and see what functions are available under "ScriptSliderPack", right click on them to see a description of what they do. You are looking to set a slider to a value, so that should narrow down your search.

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

                  P 1 Reply Last reply Reply Quote 1
                  • P
                    paper_lung @d.healey
                    last edited by

                    @d-healey Thanks, David!

                    P 1 Reply Last reply Reply Quote 0
                    • P
                      paper_lung @paper_lung
                      last edited by

                      This worked for me:

                      inline function onKnob1Control(component, value)
                      {
                      	YourSliderPack.setSliderAtIndex(0, value);
                      };
                      
                      Content.getComponent("Knob1").setControlCallback(onKnob1Control);
                      
                      d.healeyD 1 Reply Last reply Reply Quote 1
                      • d.healeyD
                        d.healey @paper_lung
                        last edited by

                        @paper_lung Yep that's the one :)

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

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

                        16

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        102.7k

                        Posts