Great! You’re welcome.
I guess, you mean all playheads (each track has it’s own)?
So, reset all playpositions and return to track #1?
Should the all the playing tracks be stopped then too?
Iguess, everything else wouldn’t make much sense… This would then be your “Panic switch”.
See above…
There already is a PLAY button per track… you could also press it manually (OFF or ON).
Stays the question what should happen if a track’s PLAY button is pressed and how to distinguish wether this button was triggered by the script routine or manually by the user.
What to do if the user presses PLAY on an empty track? (OK, this could be done at the moment too… so just don’t do this! )
I guess it would be useful that if a PLAY button is switched OFF (no matter if manually or by script), the regarding playhead position should always be reset to start. This would guarantee that if the track gets ready to play it always will start from the beginning (and not from the middle).
Though the Audio Player offers a parameter “Play from beginning” which would do exactly what we need, i didn’t use it because a connected widget won’t stay lit while the sound is playing, whereas the Play/Pause parameter will do this.
I think, it could be done in a way that if a track’s PLAY button is switched ON, the track will start playing (no matter what) and the script would then have to search the next usable track to set it to READY, to be played next.
The difficulty is i.e. a constellation that if (say) while track#5 is playing and track#6 had the READY state to be played as next in the row, but you manually press PLAY on track#2… what should happen then?
Track#5 would continue to play until its end and at the same time track#2 starts too because you triggered it manually and at thus setting track#3 to READY (played next)?
This is something i’d have to try and test…
EDIT new version:
- “Reset To #1” will now stop and zero all tracks and set play position to track#1
- Manually stopping a running track will zero its playposition
- A play operation will start the track always from the beginning
Step through 8 - custom in global_V2.gig (803.6 KB)
The manual triggering of tracks to PLAY is something i have to test and try first, but i guess this already will be helpful.