One button for Audio File Player: Play (then auto-stop) - Play next...etc

Great! You’re welcome. :beers:

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! :smiley: )

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.

More than helpful, it’s far greater !
I feel the player is more under control from now one.

You’re right, the “Reset to #1” will fit perfectly as a panic button.

As I would have imagined it, the manual step +1 for the “ready to play” track would have had the exact same behaviour as the “Step forward” button excepted it would not launch play in the same time. It would only shift the yellow frame to the next and could allow to correct the mistake of a skipped track.

I tried to add some code and I think it’s working ! :smiling_face_with_tear: I let some message in the code to invite you to correct me if I’m wrong.
I’ve changed the name “btnStepOn” in “btnPlayAndStep” to avoid confusion in this new version and added a “btnSkip” with the right message in the status box.
For this new button, I just took the same code as"btnStepOn" but removed:
SetWidgetValue(ButtonsPlayingArray[activetrack],1.0)

Was I lucky? Did I miss something? Will my whole computer crash in a middle of a show? :smiley:

Moreover, I prepared the script to being inserted in my usual music rack. I had to compact it even more, into a 1U rack as my stage laptop has a small screen and my global rack space has already some widgets.
Step through 8 - custom in global - 3.gig (720.9 KB)