HISE Logo Forum
    • Categories
    • Register
    • Login

    draggable filter panel preset problem

    Scheduled Pinned Locked Moved General Questions
    33 Posts 4 Posters 1.6k 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
      last edited by

      Very good question, I need this too.

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

      Y 1 Reply Last reply Reply Quote 0
      • Y
        yall
        last edited by

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

        Engine.addModuleStateToUserPreset("eq1");

        this is the solution :)

        d.healeyD 1 Reply Last reply Reply Quote 2
        • Y
          yall @d.healey
          last edited by

          @d-healey by searching I found this formula that works very well, however, you will have to rewrite all your presets with your new eq setting. the old EQ setting will therefore be obsolete

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

            @yall Perfect, thanks. I've just started this project so no presets yet foruntately!

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

            1 Reply Last reply Reply Quote 0
            • Y
              yall
              last edited by

              @d-healey do you think there is a way to create a button to reset the equalizer? There is the right click option of the Mouse but I would like to directly create a button.

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

                @yall Yeah you'd just need to make your button set all of the parameters to default.

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

                Y 1 Reply Last reply Reply Quote 0
                • Y
                  yall @d.healey
                  last edited by

                  @d-healey how do i do this please?

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

                    @yall It will be something like EQ.setAttribute(EQ.AttributeName, value); and you do that for each attribute. The attributes are listed in the module browser when you right-click on a module.

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

                    1 Reply Last reply Reply Quote 1
                    • Y
                      yall
                      last edited by

                      it only works for frequency 0.
                      how to return all the frequencies to zero? the eq can go up to 1000 frequency point, I can not write 1000 setattribute .... ^^
                      you would need a code like eq1.setAttribute (allfreq.eq1.Gain, 0); ^^

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

                        There's a way to do it, you have to use a band offset, I can't remember the details but if you search the forum (or possibly the docs) you'll find it.

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

                        1 Reply Last reply Reply Quote 0
                        • ustkU
                          ustk @yall
                          last edited by ustk

                          @yall One liner reset button:

                          HiseSnippet 1362.3ocuW0sahaDE1lDusv1ztqzppdoEWQztKxNjPBMppD.Cgkk.Axer8hUC1Cv.lYL1iyBY0p1dUeU5iwdYk5SPUeIpp58oyXavlD1UoQpK2MemyYNey4WSSahNzwgXKHF+jYVPAwuPp8LLcPwA.DVnZIAwuTpNvgBsk8gJLyB33.MDDEWqBGPL95Bd+9quu.vDf0ggPBBmQP5vWhFingnMyWCYZVFX.OAMNh1amupNAWjXRbY7YMIEAKf9HPe3Q.tZwjDDeflAhRraSATnCSmBDiYsGPdC1W+yPNntlP9AUg1rKxGVn3.joQy4uUGAAw0aF9xWy+k+Do5HCzB7vHvi7DHGZQzXfXrkoz5KQI0ODkJSLM3WvGfdhQn259z6wRs0sQVzPIbt8PopXVxoGfE1iRKecEh8mwjJRXZfooGCFAKayNrvhTYUTdl7NJJat+FI1HAK36PkuDXK2DXyB4TazDsiUk+NYuRhz8gTsd8f5zTICUPloQxM2OQDqgSZAcfTuHBy3jp4TRmgnW+HsgEKTnXotSJcTl5vB4JMzs2gCybPc7nL6YoitZXqyIN3oSN+7lcZTusYG0NV6dU8WV5vFG1ZREid8tnyqLbeZ0yt5fracvfSIm9BWKMjQ6s1YP6NWp1uhUyzJ8ZNrqsqyUWfvMtjnkFNZjh1QJm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l6gMaeOrYm6gMYuG1r68vl89n1v+qGG3RIi8Gax.Zp4ujQLRktv+xW7h6w
                          

                          Can't help pressing F5 in the forum...

                          Y 1 Reply Last reply Reply Quote 1
                          • Y
                            yall @ustk
                            last edited by

                            @ustk
                            great it works. thank you so much. however I like to understand when someone shows me something to learn better .. but what does this pile of numbers and letters mean? ^^

                            const var eqResetState = "190.3ocMNEjCBBCDbqDN3MeB9DjufHj3AMnk38pcizjRWosnxqWWPYOMSlY1Yp7zMLDHOHRqGdffXYZdu+IVzA62AhUoUJupEidS25hSYv1gGpP.0fPjbruszXinOvoE.ekk0EN0U6OcQRg1DIuLphH6IYKoGjMzKGiSyfKlfg89iHIKMh1.PdiwpqlWVf+6YpOZb2On3c7lKiaVR89aXdix4P6z.V.iQm3alGjDc5IxG99KlMxE+EylEgu.k3QR3C";

                            ustkU 1 Reply Last reply Reply Quote 0
                            • ustkU
                              ustk @yall
                              last edited by ustk

                              @yall It is the state of the module. Select the module you want, then Edit ModuleX -> Create Base64 encoded state

                              Can't help pressing F5 in the forum...

                              Y 1 Reply Last reply Reply Quote 0
                              • Y
                                yall @ustk
                                last edited by

                                @ustk I replaced by zero, it works. I wouldn't have a problem you think?

                                ustkU 1 Reply Last reply Reply Quote 0
                                • ustkU
                                  ustk @yall
                                  last edited by

                                  @yall Ouch! you pointed out something very strange! Effectively it resets the module whatever you put in fx.restoreState() as long as it is not a valid state...
                                  I wouldn't play this game though...

                                  Can't help pressing F5 in the forum...

                                  Y 1 Reply Last reply Reply Quote 0
                                  • Y
                                    yall @ustk
                                    last edited by

                                    @ustk
                                    I put back as you had put in case ^^ I detect a problem, when I reset via the button, the spectrum analizer disappears. It nevertheless remains activated on the eq module. weird

                                    1 Reply Last reply Reply Quote 0
                                    • Y
                                      yall
                                      last edited by

                                      @ustk do you know how to assign the equalizer knobs? when I assign I only have the frequency 0 which moves as if it was blocked while on the equalizer module we can create our frequency points and each point is adjusted. gain freq Q ..... but on the plugin, the equalizer remains on the freq 0 :) thank u

                                      LindonL 1 Reply Last reply Reply Quote 0
                                      • LindonL
                                        Lindon @yall
                                        last edited by

                                        @yall - search the forum - there's a bunch of posts about how to assign knobs to each eq node.

                                        HISE Development for hire.
                                        www.channelrobot.com

                                        Y 1 Reply Last reply Reply Quote 0
                                        • Y
                                          yall @Lindon
                                          last edited by

                                          @Lindon I have searched everywhere but there is nothing about it. assigning buttons is quite simple but in this case it is beyond my skills. I just want to reproduce the parametric EQ module on the hise interface. but the draggable filter panel does not allow the gain buttons freq, q ... to be automatically selected when I click on a frequency.

                                          LindonL 1 Reply Last reply Reply Quote 0
                                          • LindonL
                                            Lindon @yall
                                            last edited by Lindon

                                            @yall

                                            ok heres an example (or two) for an eq module called EQ1:

                                            here we control the freq of the first node( LoShelf in this case)...

                                            inline function onLoShelfFreqControl(component, value)
                                            {
                                            	//low shelf freq
                                            	local eqdx = 0 * EQ1.BandOffset + EQ1.Freq;
                                            	EQ1.setAttribute(eqdx, value);
                                            };
                                            
                                            Content.getComponent("LoShelfFreq").setControlCallback(onLoShelfFreqControl);
                                            

                                            here we control the gain of the same node...:

                                            inline function onLoShelfGainControl(component, value)
                                            {
                                            	//low shelf Gain
                                            	local eqdx = 0 * EQ1.BandOffset + EQ1.Gain;
                                            	EQ1.setAttribute(eqdx, value);
                                            };
                                            
                                            Content.getComponent("LoShelfGain").setControlCallback(onLoShelfGainControl);
                                            

                                            Here its the freq of the second node:

                                            inline function onLoMidFreqControl(component, value)
                                            {
                                            	//low mid freq
                                            	local eqdx = 1 * EQ1.BandOffset + EQ1.Freq;
                                            	EQ1.setAttribute(eqdx, value);
                                            };
                                            
                                            Content.getComponent("LoMidFreq").setControlCallback(onLoMidFreqControl);
                                            

                                            it should be pretty obvious from here...

                                            HISE Development for hire.
                                            www.channelrobot.com

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

                                            22

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.1k

                                            Posts