HISE Logo Forum
    • Categories
    • Register
    • Login

    Link Slider

    Scheduled Pinned Locked Moved Solved General Questions
    25 Posts 4 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.
    • JayJ
      Jay
      last edited by

      Is this the right way to do it?

      HiseSnippet 1100.3ocuW0kiaaCDlx1LIVoMnAnG.gEEEZARcryllVffEqhsW2Zr+Di3sK5SMfVhdMwRQ5JQkDih7due4BziPuAsCojrj+MNFo0OXHNy7w4aFMbFpAQReZbrLBYU+pYSoHqu.OblPMoyDBSf52EY8.7EjXEMxIUT6YSIwwz.jkU0eRKvpdMj42eeRaBmH7oEhPnqkLe54rPlpP5.uyXbdOR.8JVXIqepWeeonijKS.9TE2DMk3eK4F5kDsYUvHq6bZ.SIiFpHJZLXSaYvrgSjuUjZ+0rX1HNUunEZHrQohQclv3ACxi0XDxp1fhHuZZj+03KXAr4xKx.ekQgSAhx4.qJaiRs9DnjUIJUKkRODOzOhMUUnQym6i6KfWHiIPptLURsEUAUC2QBVHTMBI2R6EAKliv8YMa9HG3uCetMXUrjSa3yojHWPfMj+iUNugD4zkxIybN1wTMz3Fp5zwio9J2CLJNXQiaqDmyD2Blm6X.PGY3To.V3dPldMpBPAb5X0YhQaDUtAKBKhcyjsBK2.CGse7icTTPGDG9NmIjihsYBNSPcFmH7ULovQJx8jdCijbW+7c6QfK4IzCs+C65l.uQLU8BkJhMJQQcalq+41u2jN2ZTnwl4gNDNeDTb6thu0jdUBlGSepDr0NPvh705I3R9NOql8NcMjMSyV4JarialcZ5bsVg6gNGerSqCsqugbcdppDBfM02PfC7VMYEq2XZXdM55yBKFTljPoP9Roh9RgqIzreusyxpFOds5x1MNMZsp0sGi1FPWQR3HZT4Dq1Pn+whMktyt0TxOMwTxPonufod4TZ15dRdftYi94UaggxxrPyrpYLDdRYZk8frVYsSTJo.wfMoNNKohLzu7XCzlfOjyBnQF31375gkw+Md6F97J6kw+sdneoeWhhn6JmESPbNkFoX5zoUW5afwZo8nqi6RiuUImZB5rxIjEdGB62U3Rl2rhE+l2z7rZe.v8vlBbcFuX+u6tjWdW48rvAdTuPRIcOwKTFP0CVtJuUIJfNljvSO3rTlcm3v7bagebh9rvA3sypSJgYzxfDNQs3fa8MTxT.GbVXZodhnHlolU9FLKOMu1lO3zrzAmOxwhcjtODOfo7mrd9VYM7EJO+uluY2M5Kwoi+KHaMbuecqWDp1t0yofJezKEc+Ttb2ziCFVj+bYhXjnacdNbJnbo6bEuRWaVtfpGkFn6yWBg2QG8gSxkWFfQw4x2N.bXuH5uOee9yO38yrUjh55cAqTc9ecRQ8c4BupeltFI5UxDESbyEDXTH3W7kIgCgKT6Sg2cBAkCaN1phtEa55l50ZRLjJBLK9G3WlxV50VYJakq7+EeDR7iju1OsOttT3dFIPbKLeNPc36Rf0Nsx6diwMazDEBWU+0995BzuCJtWOlmrGXNZOv7z8.y2uGXd1df4G1CL+3Vwn+JoWjnjgoMu.ACN0LE0x5TAApdMGOQ+KvvzHbL
      

      Joansi Villalona

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

        @Jay said in Link Slider:

        Is this the right way to do it?

        It doesn't seem to work and you get an error in the console, so probably not.

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

        JayJ 1 Reply Last reply Reply Quote 0
        • JayJ
          Jay @d.healey
          last edited by

          @d-healey so, what's the way to do it in this scenario?

          Joansi Villalona

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

            @Jay

            Don't use magic numbers, use constants. You can get these from the auto complete menu.

            a542be25-0d72-4231-97b1-999948ad3433-image.png

            This won't make a different to the functionality of your code but makes it more readable and future proof.

            For the linking you need to think about what you want the behaviour to be. Do you want when the link button is active and you move a knob that the other knob also moves? If so you are going to have to put something in the callbacks of both knobs to handle this.

            Here's a video about linking knobs with a reverb. It's not quite the same as what you're doing but should help point you in the right direction.

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

            JayJ 1 Reply Last reply Reply Quote 0
            • JayJ
              Jay @d.healey
              last edited by

              @d-healey I just made a new slider, hide the other sliders, and use the new one to control both sides, the only thing I need is when I unlinked the slider I want them to go back to position they were, and I don't know how to, I have the press the sliders to get get back to their position.

              I hope you understand what I'm trying to say

              Joansi Villalona

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

                @Jay When the button is turned on you need to store the value of the knobs. When the button is turned off you set the knobs to the stored value.

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

                JayJ 1 Reply Last reply Reply Quote 0
                • JayJ
                  Jay @d.healey
                  last edited by

                  @d-healey and how do I do that?

                  Joansi Villalona

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

                    @Jay Do you know how to get the value of the knob and put it in a variable?

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

                    JayJ 1 Reply Last reply Reply Quote 0
                    • JayJ
                      Jay @d.healey
                      last edited by

                      @d-healey do you have any videos about it?

                      Joansi Villalona

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

                        @Jay

                        Start here

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

                        JayJ 1 Reply Last reply Reply Quote 0
                        • JayJ
                          Jay @d.healey
                          last edited by

                          @d-healey I watched the video but couldn't figure it out.

                          Joansi Villalona

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

                            @Jay Did you watch the previous video I posted about linking knobs for reverb?

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

                            JayJ 1 Reply Last reply Reply Quote 0
                            • JayJ
                              Jay @d.healey
                              last edited by

                              @d-healey Yes I watched it, but I didn't understand it. But it's ok I know you must be busy, thank you sir.

                              Joansi Villalona

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

                                @Jay Do you know how to get the value of a control in your script?

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

                                JayJ 2 Replies Last reply Reply Quote 0
                                • JayJ
                                  Jay @d.healey
                                  last edited by Jay

                                  @d-healey Yes

                                  // I just did this one now

                                  const var lfdBKnob2 = Content.getComponent("lfdBKnob2");
                                  var a = lfdBKnob2.getValue();
                                  
                                  Console.print(a);
                                  

                                  and it gave the value I don't know if there is a better solution

                                  Joansi Villalona

                                  1 Reply Last reply Reply Quote 0
                                  • JayJ
                                    Jay @d.healey
                                    last edited by Jay

                                    @d-healey I got this so far, but I don't how to recover them

                                    // Referencing Knb Values
                                    const var dleftKnb = Content.getComponent("dleftKnb");
                                    const var rightKnb = Content.getComponent("rightKnb");
                                    const var linkValue = Content.getComponent("linkValue");
                                    
                                    // Storing Knb Values
                                    var leftValue = dleftKnb.getValue();
                                    var rightValue = rightKnb.getValue();
                                    var lrValue = linkValue.getValue();
                                    
                                    Console.print(leftValue);
                                    Console.print(rightValue);
                                    Console.print(lrValue)
                                    

                                    or better yet when I try it, it quit HISE

                                    Delay.setAttribute(Delay.DelayTimeLeft,  dleftKnb[value]);
                                    

                                    Joansi Villalona

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

                                      @Jay said in Link Slider:

                                      dleftKnb[value]

                                      whats this?

                                      you want the value of the knb no? Didnt you just show us(and yourself) how to do this?

                                      HISE Development for hire.
                                      www.channelrobot.com

                                      JayJ 1 Reply Last reply Reply Quote 1
                                      • JayJ
                                        Jay @Lindon
                                        last edited by Jay

                                        @Lindon the knob is changing but not the actual module (delay) itself, plus is quitting hise

                                        Joansi Villalona

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

                                          @Jay said in Link Slider:

                                          @Lindon the knob is changing but not the actual module (delay) itself, plus is quitting hise

                                          you have the answer right in front of you - you've written it yourself:

                                          Delay.setAttribute(Delay.DelayTimeLeft,  dleftKn.getValue());
                                          

                                          HISE Development for hire.
                                          www.channelrobot.com

                                          JayJ 2 Replies Last reply Reply Quote 0
                                          • JayJ
                                            Jay @Lindon
                                            last edited by

                                            @Lindon maybe I’m not explaining myself clear, the knob is changing but it’s not changing in the module, I have to press the knob for it to update to the value that the knob is saying, plus it is quitting HISE

                                            Joansi Villalona

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

                                            16

                                            Online

                                            1.7k

                                            Users

                                            11.9k

                                            Topics

                                            103.6k

                                            Posts