Start next playlist at exactly TOTH

Hi,

I could do with some help.

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?

Thanks for any help you can give.

Andrew

Hi Andrew, something like this (untested):

[code]var i: integer;

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]

From the forums here:

http://forum.mairlist.com/index.php/topic,558.msg7989.html#msg7989

Kind Regards tony

Thanks Tony.

I’ll try playing around with that. On first try it didn’t work.

Also, I want the last song in the hour to be faded out and then the new playlist to start.

Got the script to work. Jumps to next TOTH marker.

But I do want the playing tracked to be faded, not just cut off. Any ideas how I do that?

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.

No scripting involved in this solution.

Thank you Torben, I will try that.
Regards
Andrew