Reset RR count on transport
-
It would be perfect if we could have a way to enable resetting the RR count in samplers on transport stop!
-
@tomekslesicki Can't you do this with the onTransport callback?
const th = Engine.createTransportHandler(); th.setOnTransportChange(false, function(isPlaying) { // Reset your round robins here });
-
@d-healey I think I need to add a global constant called
Synchronous
andAsynchronous
that just default totrue
orfalse
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 theNotificationType
enumeration). -
@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?
-
@tomekslesicki You're wanting custom RR functionality so scripting it is the way to go, also it's about 5 lines of code.
-
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.