I’m using StationPlaylist Creator as a scheduler. I’m creating hourly playlists with a dummy marker at the TOTH.
So part of a typical playlist (Sun 02 Aug - 16.m3u) looks like this:
#mAirList DUMMY 0 START OF HOUR 16:00:00
E:\StationPlaylist Audio\TopOfTheHour\id_-Black_Cat_Shot_3.mp3
E:\StationPlaylist Audio\GStar\The Who - My Generation.mp3
E:\StationPlaylist Audio\A\Jools Holland With Ruby Turner - I Went By.mp3
E:\StationPlaylist Audio\R1\Duffy - Rockferry.mp3
E:\StationPlaylist Audio\R2\Pearl Jam - Jeremy.mp3
E:\StationPlaylist Audio\Commercials\OFFORD_MOTOR_COMPANY.mp3
I have scripts to load or insert or append the next hour’s playlist which I run using the Event Scheduler.
How do I make the playlist for the next hour start at exactly at the TOTH fading out the last item of audio from the outgoing playlist?
begin
for i := 0 to CurrentPlaylist.GetCount - 1 do
if copy(CurrentPlaylist.GetItem(i).GetTitle, 1, 13) = ‘START OF HOUR’ then begin
CurrentPlaybackControl.AutomationJump(CurrentPlaylist.GetItem(i));
break;
end;
end.[/code]
Actually it should be faded, listen closely. AutomationJump does exactly the same thing as marking the items in between as played and then clicking NEXT in the toolbar.
By the way, the requested functionality can also be achieved without a script by using fixed time markers. mAirList currently lacks support for specifying fixed times through m3u import, but there’s a trick to do it. Just create 24 playlists, one for each hour, each with a single dummy item which has the top of the hour set as a fixed time. Save these playlists as .mlp files (that’s important, not .m3u!), name them e.g. fix00.mlp through fix23.mlp. Then, at the top of your m3u playlist, add the following line:
#mAirList INCLUDE c:\wherever\fix00.mlp
This will include the mlp file with its fixed time item, which in turn will make mAirList fade to your playlist at the given time.