Automatically insert a file before a track in the playlist.

You have a question or need an advice about how to do something? Ask it here!
Post Reply
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
Automatically insert a file before a track in the playlist.

Post 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.
User avatar
radio42
Site Admin
Posts: 8295
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Automatically insert a file before a track in the playlist.

Post 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.
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
Re: Automatically insert a file before a track in the playlist.

Post by John2103 »

Thank you Bernd, that's a perfect solution. I continue to be amazed about the flexibility of ProppFrexx :D

Post Reply