HISE Logo Forum
    • Categories
    • Register
    • Login

    Combo Box print Value

    Scheduled Pinned Locked Moved Scripting
    12 Posts 3 Posters 145 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.
    • d.healeyD
      d.healey @voxuer1
      last edited by

      @voxuer1 09a49f9c-719c-4384-8efd-2af7c92c2927-image.png

      The function doesn't require a parameter.

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

      V 1 Reply Last reply Reply Quote 0
      • V
        voxuer1 @d.healey
        last edited by

        @d-healey Ok, the problem was that the combobox was linked to a hardcoded master FX. Also, all the other inline functions don’t work after linking the fader, to the hardcoded master FX. Hm.

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

          @voxuer1 You can either use a control callback or parameter/processor ID, not both together.

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

          V 1 Reply Last reply Reply Quote 1
          • V
            voxuer1 @d.healey
            last edited by

            @d-healey Ok, thanks. And when I try to get the values back from the hardcoded function and link them to a label via scripting?

            const var HardcodedMasterFX1 = Synth.getSlotFX("HardcodedMasterFX1");
            const var obj = HardcodedMasterFX1.getParameterProperties();

            ????

            Processor Type="Hardcoded Master FX" ID="HardcodedMasterFX1" Bypassed="0"
            Network="chorus" rate="0.3810000121593475" depth="49.74100112915039"
            spread="49.66999816894531">

            Oli UllmannO 1 Reply Last reply Reply Quote 0
            • Oli UllmannO
              Oli Ullmann @voxuer1
              last edited by

              @voxuer1
              I don't really get what you trying to do but you can use a value broadcaster to get an extra callback function even if you linked the control to a processor.

              V 1 Reply Last reply Reply Quote 1
              • V
                voxuer1 @Oli Ullmann
                last edited by

                @Oli-Ullmann What I want is a vertical slider without the value popup, as it looks ugly. I come from Max/MSP RNBO and have successfully imported my code into HISE. There, my effect is in a HardcodedMasterFX1. All the knobs are there, and everything works fine after exporting to VST and AU.

                There are two things I want to achieve:

                1. I want to display the slider values in panels. This doesn’t work with callbacks as Mr. d-Healey answered, because I linked the sliders to the HardcodedMasterFX1. So, my idea is to route these values back to the interface. Is this possible?

                2. I have parameters in my RNBO script, like a Gain Reduction, that I would also like to show in the interface. So, I need to link back from the HardcodedMasterFX1.
                  Thanks!

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

                  @voxuer1

                  You can change the appearance of the value popup.

                  You can't route values back. You need to set the values of the module's controls from your slider's control callback instead of using parameter/processor ID. An alternative approach is to use a broadcaster but this is a more advanced topic.

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

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    voxuer1 @d.healey
                    last edited by

                    @d-healey something like that

                    const var HardcodedMasterFX1 = Synth.getEffect("HardcodedMasterFX1");

                    Synth.getSlotFX("HardcodedMasterFX1");

                    const var Speed = Content.getComponent("Speed");

                    inline function onSpeedControl(component, value)
                    {
                    HardcodedMasterFX1.set("rate", value);
                    Console.print("Rate changed to: " + value);
                    };

                    Content.getComponent("Speed").setControlCallback(onSpeedControl);

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

                      @voxuer1 You can use code tags on the forum to format your code which makes it a bit easier to read. 41971325-a733-4020-b6c8-dcb61764f8e8-image.png

                      To set a module's property you need to use the setAttribute function. The name of the attribute will vary depending on the module, but if you have a knob in your effect called rate then it will usually be moduleName.rate - replace moduleName with the name of your module, and it's case sensitive.

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

                      V 1 Reply Last reply Reply Quote 0
                      • V
                        voxuer1 @d.healey
                        last edited by

                        @d-healey

                        const var HardcodedMasterFX1 = Synth.getSlotFX("HardcodedMasterFX1");
                        const rateControl = Content.getComponent("Speed");
                        inline function onRateControl(component, value)
                        {
                        HardcodedMasterFX1.setAttribute("HardcodedMasterFX1.rate", value);
                        Console.print("Rate changed to: " + value);
                        }
                        rateControl.setControlCallback(onRateControl);

                        Interface:! Line 11, column 36: function not found {SW50ZXJmYWNlfHwyNDl8MTF8MzY=}

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

                          @voxuer1 That means the thing on the left side of the dot doesn't have a function with that name. You probably need to get the reference to your module in a different way.

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

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

                          17

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          102.5k

                          Posts