Page 1 of 1

Automatically insert a file before a track in the playlist.

Posted: 07 Feb 2023 17:53
by John2103
I some cases would like to automatically insert an mp3 before a song in the playlist. For example, if the next song is by Dua Lipa, I want to automatically insert an mp3 with information about the latest song by Dua Lipa before that song.

I think I can do that in the following way.

ProppFrexx sends the events ${plstrackartistnext} and ${plstracktitlenext}

If the song matches the criteria:

Get the index of the next track
PLS_CURRENT_TRACKNEXT_GET

Append the file
PLS_CURRENT_APPEND_FILE

Select the file
PLS_CURRENT_SELECT_ENTRY ${cpltotalcount}

Move the file to index of the next track -1
PLS_CURRENT_MOVE_TO

Is this the best way to do it, or is there a better way?

Thanks in advance for the info.

Re: Automatically insert a file before a track in the playlist.

Posted: 07 Feb 2023 18:57
by radio42
Yes, there is a better way.
The feature is called 'Station Voice Files'. See here: viewtopic.php?f=9&t=38

Another alternative is an option called Automatic Sweeper selection (as a option of a script-line):
- it selects a random track from the cartwall, but filtering the cartwall with ONLY tracks matching the same Artist! This allows picking (if available) an Artist related intro sweeper, eg. to announce/feature the Artist.
- it always uses the mentioned transition, eg. if the Artist intro is too long (longer than the ramp time), the sweeper stays as a dedicated track within the playlist, else it will fit til the RAMP time.

Re: Automatically insert a file before a track in the playlist.

Posted: 08 Feb 2023 16:10
by John2103
Thank you Bernd, that's a perfect solution. I continue to be amazed about the flexibility of ProppFrexx :D