Auto stop when changing the rack or song

Pardon me if the topic already exists, but I can’t find it. For sure, there is a way to automatically stop the system play when changing the racks or songs; I just couldn’t figure it out.

So, I have two streaming audio players (one for click and one for backing tracks), and they are synced with system play. I start playing, everything is in sync, and then let’s say I switch to another song; play just continues. I would like to change the song (the files in the streaming audio players will change) and then manually start playing.

If there is more elegant solution to my setup, that would be welcomed too. Right now I had to set up two players because I want output on different channels.

You can put this script in the Global Rackspace Script Editor and press Compile.
When you change songs, the Global playhead will stop.

On Song(oldSongIndex : integer, newSongIndex : integer)
EnablePlayhead(false)
End

That was fast and solved my problem with the song change. Thank you very much!

Excuse me for a probably stupid question, but I don’t know anything about scripting: If I change the value Song to Rack, will it solve my problem with the change of racks too while in the panels section (not big of a problem but it will help during editing).

Change it to Rackspace

The callback is
On Rackspace

Song and Rackspace are not values. They are keywords. An example of a variable containing a value in this context would be oldSongIndex which can be different depending on whatever was the previous rackspace or song.

Aha. I understand a little bit more now, at least the terminology. :wink:

Thank you all very much!

I have another similar problem. I felt really confident and tried to make Gig Performer NOT to stop when changing the Songparts. I changed the script and adapted to what I want but it was not working. I used the keyword: Songpart. Am I doing something wrong? So it’s a Song Part in the Setlist mode. Thanks in advance!

Edit: I just realised that I need opposite action from what I was doing with script before (it’s too late where I live… sorry). So how I make gig performer not to stop when changing the song parts? Is the script doing this (because it counts changing the songparts as changing the rackspaces)?