HISE Logo Forum
    • Categories
    • Register
    • Login

    Slider value display - customisation

    Scheduled Pinned Locked Moved Feature Requests
    22 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

      The error is pretty clear

      Line 74, column 11: Duplicate const var declaration.

      Go to line 74 and remove it because you've already got it somewhere else.

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

      SteveRiggsS 1 Reply Last reply Reply Quote 0
      • SteveRiggsS
        SteveRiggs @d.healey
        last edited by

        @d-healey Doh. Last time I did that just it threw me another error. Compiled this time :)

        Still no value in the label though. Pain in the ass this one is lol

        www.anarchyaudioworx.com

        www.facebook.com/groups/audioworx/

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

          @SteveRiggs Console.print()

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

          SteveRiggsS 1 Reply Last reply Reply Quote 0
          • SteveRiggsS
            SteveRiggs @d.healey
            last edited by

            @d-healey I'm not sure I'm putting the Console.print in the right place. Still just getting errors. Tried it here and in the onControl callback

            //Link SpeedKnob to LFOModulator1
            const var SpeedKnob = Content.addKnob("SpeedKnob", 248, 15);
            SpeedKnob.set("text", "Speed");
            SpeedKnob.set("mode", "TempoSync");
            
            const var LFOModulator1 = Synth.getModulator("LFOModulator1");
            
            
            inline function onSpeedKnobControl(component, value)
            {
                Console.print(work you bugger);
                LFOModulator1.setAttribute(LFOModulator1.Frequency, value);
            };
            
            Content.getComponent("SpeedKnob").setControlCallback(onSpeedKnobControl);
            
            
            

            The error:

            Interface:! Line 83, column 24: Found identifier when expecting ',' {SW50ZXJmYWNlfHwyMjc5fDgzfDI0}
            

            www.anarchyaudioworx.com

            www.facebook.com/groups/audioworx/

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

              @SteveRiggs strings need to be in quotes

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

              SteveRiggsS 1 Reply Last reply Reply Quote 0
              • SteveRiggsS
                SteveRiggs @d.healey
                last edited by

                @d-healey I see! Thanks. Well, it's printing to the console now when I turn the slider. I still don't understand why it's not showing the value if that's working now. Head boggler this one 🤔 Sorry about this

                Screen Shot 2019-11-07 at 15.04.45.png

                www.anarchyaudioworx.com

                www.facebook.com/groups/audioworx/

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

                  @SteveRiggs

                  inline function onSpeedKnobControl(component, value)
                  {
                      Console.print(work you bugger);
                      LFOModulator1.setAttribute(LFOModulator1.Frequency, value);
                  };
                  

                  You're not setting the value of the label in the callback function.

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

                  SteveRiggsS 1 Reply Last reply Reply Quote 0
                  • SteveRiggsS
                    SteveRiggs @d.healey
                    last edited by

                    @d-healey Oh shit. Sorry. What should I put in there? Confused a bit as I already have this above...

                    inline function onSpeedKnobControl(component, value)
                    {
                        //if slider is moved, show label
                        SpeedKnobLabel.showControl(true);
                        SpeedKnobLabel.set("text", NoteArray[value]);
                    

                    www.anarchyaudioworx.com

                    www.facebook.com/groups/audioworx/

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

                      @SteveRiggs You can only have one callback for a control so you have to make sure all the action you need happens in one of those callbacks you've declared already and delete the other one.

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

                      SteveRiggsS 1 Reply Last reply Reply Quote 0
                      • SteveRiggsS
                        SteveRiggs @d.healey
                        last edited by

                        @d-healey Thanks mate. Just moved it down and it's working now. Saved the day yet again. Nice one. I'm gonna have to start crediting you on my plugins at this rate 🤣

                        www.anarchyaudioworx.com

                        www.facebook.com/groups/audioworx/

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

                        49

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts