PAL Script - Automatically Replace Displayed Track and Artist Title

This script was written to replace the automatically displayed artist and track title in the player, with anything else you may wish to display instead.  This could be useful to display an advert or station message.

{ PAL Script created on 03/03/2017 21:19:56 }
// AutomaticTrackInfo.PAL
// This script will replace the artist name and track title
// for any track played which is not category [S]

var Song  : TSongInfo;

PAL.LockExecution;         // Speed up the Script processing
PAL.Loop := True;
if ActivePlayer <> nil then
    Song := ActivePlayer.GetSongInfo;
      if Song['songtype'] <> 'S' then         // If the track type is not S (a song) then change the display
       Song['artist'] := 'Your Station Name'; // Change this to your desired message
       Song['title'] := 'Your Station Tag';  // Change this to your desired message
PAL.UnLockExecution;      // Return Script processing to normal speed

If you want to replace the text for a specific track type then you would change <> 'S' to =='y' where y is the type of track you wish to replace the display for.  The available options are:

  • S - Normal Song
  • I - Station ID
  • P - Promo
  • J - Jingle
  • A - Advertisement
  • N - News
  • V - Interviews
  • X - Sound Effects
  • C - Unknown Content

The player will display the original track metadata briefly but this will then be replaced with the message configured above.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request