HISE Logo Forum
    • Categories
    • Register
    • Login

    Tempo Sync button

    Scheduled Pinned Locked Moved General Questions
    6 Posts 4 Posters 530 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.
    • HISEnbergH
      HISEnberg
      last edited by

      Re: A Button that shows/hides knobs?

      Hi all,

      I have been trying to work out a tempo sync button on my interface, which will switch something like a delay's time parameter between synced and unsynced. I accomplish this pretty easy on the back end creating a "TimeFree" knob, a "TimeSync" knob, and a "TempoSync" button to toggle between the two.

      I followed @Christoph-Hart example linked here to make this in the UI. Everything seems to work except that when I actually link my button to the TempoSync (in the processorID and parameterID) the UI interface hiding and showing the knobs stops functioning. Has this something to do with the script being overwritten? Just trying to wrap my head around this. Thanks

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

        @HISEnberg You can use either Parameter/Processor ID or a control callback, not both. If you want to have your cake and eat it you can use a broadcaster but a lot of the time it's simpler to do everything within the callback and drop the Parameter/Processor ID assignment.

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

        HISEnbergH 1 Reply Last reply Reply Quote 0
        • HISEnbergH
          HISEnberg @d.healey
          last edited by

          @d-healey Thanks I figured as much and pushed ahead with using just the control callback, which was a bit time consuming but worth it in the end.

          B 1 Reply Last reply Reply Quote 0
          • B
            bfaudio @HISEnberg
            last edited by

            @HISEnberg setting up tempo sync controls for LFO’s and a delay inside a current project for the first time and came across this thread while searching up tempo sync.
            I was wondering if you could point me in the right direction for the appropriate callbacks? I’ve made the knobs switch which is displaying and am now trying to get the button to switch the device to tempo synced or not.
            Thanks
            Chris

            CyberGenC 1 Reply Last reply Reply Quote 0
            • CyberGenC
              CyberGen @bfaudio
              last edited by CyberGen

              @bfaudio
              Try this:

              // inside the button callback
              
              knob.set("mode", "TempoSync"); // for tempo sync
              
              // and
              
              knob.set("mode", "Frequency");// for unsynced
              
              // and for the lfo
              
              lfo.setAttribute(lfo.TemoSync, value);
              
              B 1 Reply Last reply Reply Quote 0
              • B
                bfaudio @CyberGen
                last edited by

                @CyberGen amazing, worked. Thankyou so much.

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

                22

                Online

                1.7k

                Users

                11.8k

                Topics

                102.7k

                Posts