HISE Logo Forum
    • Categories
    • Register
    • Login

    Reset RR count on transport

    Scheduled Pinned Locked Moved Feature Requests
    6 Posts 3 Posters 329 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!

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @tomekslesicki
        last edited by d.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
        });
        

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

        Christoph HartC T 2 Replies Last reply Reply Quote 0
        • Christoph HartC
          Christoph Hart @d.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 @d.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?

            d.healeyD 1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.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.

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

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @d.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

                27

                Online

                1.8k

                Users

                12.1k

                Topics

                105.4k

                Posts