HISE Logo Forum
    • Categories
    • Register
    • Login

    How to make a button to lock a value even as a new preset is loaded?

    Scheduled Pinned Locked Moved Scripting
    21 Posts 2 Posters 1.2k 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 @mwplugs
      last edited by d.healey

      @mwplugs

      im not using a simple reverb module im using a routing matrix split to simple gain for a send effect to an IR module

      Why don't you use a send container + send effect?

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

      M 1 Reply Last reply Reply Quote 0
      • M
        mwplugs @d.healey
        last edited by

        @d-healey i never heard of that. ive been doing it the old way of splitting the signal then routing it so a simple gain and then to a effect and then bring the audio back

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

          @mwplugs

          i never heard of that.

          It was added a few months ago I think. Much easier than doing it the old way :)

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

          M 1 Reply Last reply Reply Quote 0
          • M
            mwplugs @d.healey
            last edited by

            @d-healey ok i see it. but how do you actually use it lol. is there a thread anywhere?

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

              @mwplugs https://forum.hise.audio/topic/1223/send-bus-routing-please-help/11

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

              M 1 Reply Last reply Reply Quote 0
              • M
                mwplugs @d.healey
                last edited by

                @d-healey alright i restructured everything and adjusted the code and all elements have the same identifiers as the code. but it is still recalling send level when preset is changed and lock is engaged.

                const var SendEffect = Synth.getEffect("SendEffect");
                
                // btnLock
                const btnLock = Content.getComponent("btnLock");
                
                // knbWet
                const knbWet = Content.getComponent("knbWet");
                knbWet.setControlCallback(onknbWetControl);
                
                inline function onknbWetControl(component, value)
                {
                	SendEffect.setAttribute(SendEffect.Gain, value);
                	knbWetHidden.setValue(value);
                }
                
                // knbWetHidden
                const knbWetHidden = Content.getComponent("knbWetHidden");
                knbWetHidden.setControlCallback(onknbWetHiddenControl);
                
                inline function onknbWetHiddenControl(component, value)
                {
                	if (!btnLock.getValue())
                	{
                		knbWet.setValue(value);
                		knbWet.changed();
                	}
                }
                

                and i doing something wrong here? are there special settings adjustments that need to be made to each element in order for this tom function?

                as of now the lock is doing nothing and the "hidden knobs values arent being affected or drawing from the main send knob at all it stays the same regardless

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

                  @mwplugs Post a snippet.

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

                  M 1 Reply Last reply Reply Quote 0
                  • M
                    mwplugs @d.healey
                    last edited by

                    This post is deleted!
                    M 1 Reply Last reply Reply Quote 0
                    • M
                      mwplugs @mwplugs
                      last edited by

                      @mwplugs a bit unrelated but can you embed all of the audio file within the plugin so it doesnt have to be in applications folder with convolution. i know before for whatever reason it didnt work

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

                        @mwplugs Yes if it's less than 50MB.

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

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mwplugs @d.healey
                          last edited by

                          @d-healey i just tested just the function of it and put a sine and it made a terrible infinite feedback loop? what the...it workd perfect the old way lol

                          M 1 Reply Last reply Reply Quote 0
                          • M
                            mwplugs @mwplugs
                            last edited by

                            @mwplugs nvrmnd it was something dumb smh lol

                            M 1 Reply Last reply Reply Quote 0
                            • M
                              mwplugs @mwplugs
                              last edited by

                              @mwplugs still didnt figure out the lock button but got everything else situated

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

                                Your snippet contains external files. You need to post a minimal snippet that only contains what is needed to demonstrate the problem.

                                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

                                45

                                Online

                                1.7k

                                Users

                                11.7k

                                Topics

                                101.9k

                                Posts