Reset Internal Clock on Transport Change
-
I'm building a plugin that includes a step sequencer that can either sync with the DAW or a custom BPM. This is done using a transportHandler that is set to PreferExternal or InternalOnly.
While using a custom BPM, I would like the transportHandler clock to reset when the user presses play within the DAW. I tried using
th.setOnTransportChange(), but it is not triggered when usingth.setSyncMode(th.InternalOnly).Do you have any ideas of how to reset and retrigger the transpotHandler on Transport Change?