Hello,
while most of the code is kinda easy to get, I find a bit hard to understand how sync /clocks / play status is working, espcecially without step-into-debugging.
What I basically want to do - besides other things that I found easy to achieve - is to change the MIDI sync mode in way, that it starts playing not on MIDI-Beat-Clock-Start command, but on "the first noteOn" (numHeldNotes>0) to arrive, and stopping playback after "the last NoteOff" ( numHeldNotes<1). That way I plan to have a nice integration of the whole thing into song-projects, having anything (start/stop, pattern select, current transposition) automatable from MIDI DAW.
A little hacky approach may be to just block the final sending-the-notes (and maybe also block the LED`s lightning), so that it runs silently for numHeldNotes<1, but I wouldn`t mind doing a more proper solution..
Could someone drop me a few sentences how this basically would be done?
Thanx in advance!

