Remove Played Song Automatically Safe Mode

It would be very cool to safe some songs from the “Remove Played Song Automatically” setting.

It would be useful for songs/themes, you are repeatedly going to play, like jingles at the start or end of a set or the Prosit and similar stuff. Would be very cool to have that button in the same window where you can set the colors in the setlist.

Hey @Basstor, that might be a bit too niche for now, but I’ll add a new parameter that will allow you to delete a song from the setlist based on its index so you can build your own project script that removes songs after they were played unless they match a given name or pattern.

Would that work for you? :slight_smile:

I guess it could help, if I knew how to handle the parameter :smiley:

Hey @Basstor, I’ve added another new OSC value to make this as easy as possible. Starting with the next beta you should be able to use a project script like this:

const keepInSetlist = ["Prosit", "Jingle"];

onOscChange("/setlist/playedSongIndex", ([index]) => {
  if (index === null) {
    return;
  }

  const shouldKeep = keepInSetlist.some(s => osc("/setlist/songs", index).includes(s));

  if (!shouldKeep) {
    sendOsc("/setlist/removeSong", index);
  }
});

With this script, as long as the song doesn’t include one of the words defined in keepInSetlist, it will get removed automatically :slight_smile: