Forum
    • Categories
    • Register
    • Login

    Reset RR count on transport

    Scheduled Pinned Locked Moved Feature Requests
    6 Posts 3 Posters 485 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.
    • T
      tomekslesicki
      last edited by

      It would be perfect if we could have a way to enable resetting the RR count in samplers on transport stop!

      David HealeyD 1 Reply Last reply Reply Quote 0
      • David HealeyD
        David Healey @tomekslesicki
        last edited by David Healey

        @tomekslesicki Can't you do this with the onTransport callback?

        const th = Engine.createTransportHandler();
        
        th.setOnTransportChange(false, function(isPlaying)
        {
        	// Reset your round robins here
        });
        

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        Christoph HartC T 2 Replies Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @David Healey
          last edited by

          @d-healey I think I need to add a global constant called Synchronous and Asynchronous that just default to true or false because it's impossible to tell now what's the mode for snippets posted like this (JUCE did this some years ago when they introduced the NotificationType enumeration).

          1 Reply Last reply Reply Quote 1
          • T
            tomekslesicki @David Healey
            last edited by

            @d-healey @Christoph-Hart yeah, and as far as I know there’s no way to just call „reset rr now” as a callback without scripting a custom rr system, which feels a bit like an overkill for such a simple thing, right?

            David HealeyD 1 Reply Last reply Reply Quote 0
            • David HealeyD
              David Healey @tomekslesicki
              last edited by

              @tomekslesicki You're wanting custom RR functionality so scripting it is the way to go, also it's about 5 lines of code.

              Free HISE Bootcamp Full Course for beginners.
              YouTube Channel - Public HISE tutorials
              My Patreon - HISE tutorials

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @David Healey
                last edited by

                I would also think that as soon as you leave the non-default behaviour, you should go into scripting it, otherwise I'll keep adding functionality to the default logic indefinitely. I mean you have to hook up the transport handler anyways and keeping a variable around that you increment and wrap around zero isn't rocket science.

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

                25

                Online

                2.1k

                Users

                13.1k

                Topics

                113.3k

                Posts