theoriginalrage Posted July 17, 2009 Share Posted July 17, 2009 I've seen people ask this question in various forms and no one can seem to answer the question. Can you use PAL to reload a clockwheel so it restarts from the beginning at the TOH? The answer is yes but not really. lol Here's what I have done and it works. First: This is my PAL script that waits for the TOH and then clears the queue and reloads my clockwheel from beginning to end. I just pasted my clockwheel info into the PAL script. ----------------------------------------------------------------- // Waits for TOH and Clears Queue then loads the PAL clockwheel {Wait for right time} PAL.Loop := True; PAL.WaitForTime(T['xx:59:57']); {Clear Queue} Queue.Clear; // This is the PAL clockwheel // You will need to change the Cat's to reflect your set up Cat['TOH'].QueueTop(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Daytime Mix'].QueueBottom(smMRP, EnforceRules); Cat['Electromix Promo'].QueueBottom(smRandom, NoRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Upload'].QueueBottom(smRandom, NoRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRPA, EnforceRules); Cat['Daytime Mix'].QueueBottom(smRandom, EnforceRules); ------------------------------------------------------------------ Second: Make an actual clockwheel (mine is called regular.cwf) that looks like this: Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); You will have to change all of the Cat's to to reflect your set up. Load the PAL script to run automatically. It will loop and wait for the TOH to clear the queue and reload the PAL "clockwheel". If you are short on music in an hour the queue will pull from the actual clockwheel to fill and then start the whole process over again at the TOH. Link to comment Share on other sites More sharing options...
GKIye Posted July 17, 2009 Share Posted July 17, 2009 Thanks for sharing ! So it is 100% operational at your project ? If so I'm gonna add it to the sticky topic about PALs Great contribution ! Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
GKIye Posted July 17, 2009 Share Posted July 17, 2009 I added your contribution to the PAL sticky topics (into Part 1) You can find it here : http://forums.broadcastingworld.net/showthread.php?t=7199 I included the credits to you Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
theoriginalrage Posted July 17, 2009 Author Share Posted July 17, 2009 It works. I tried to have a blank clockwheel running and just the pal script but it ran out of content so be sure to have a clockwheel with content running for the queue to pull from so it doesn't run out of music. Or make sure you have enough content written in the PAL script to cover an hour. Link to comment Share on other sites More sharing options...
jamesdean Posted July 17, 2009 Share Posted July 17, 2009 It works. I tried to have a blank clockwheel running and just the pal script but it ran out of content so be sure to have a clockwheel with content running for the queue to pull from so it doesn't run out of music. Or make sure you have enough content written in the PAL script to cover an hour. That's great, thanks for sharing. Link to comment Share on other sites More sharing options...
theoriginalrage Posted July 17, 2009 Author Share Posted July 17, 2009 I didn't like having a clockwheel running with this because when it loads it pulls from the clockwheel and the script at the same time and screws up the order of things so I made a blank.cwf with nothing in it and added more content to my script. I also added the fade active player part at the end to help the TOH fall as close to the actual top of hour. {Wait for right time} PAL.Loop := True; PAL.WaitForTime(T['xx:59:50']); {Clear Queue} Queue.Clear; Cat['TOH'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Daytime Mix'].QueueBottom(smMRP, EnforceRules); Cat['Electromix Promo'].QueueBottom(smRandom, NoRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Upload'].QueueBottom(smRandom, NoRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Advertisements (All)'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRPA, EnforceRules); Cat['Daytime Mix'].QueueBottom(smRandom, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Computer Gen'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Daytime Mix'].QueueBottom(smWeighted, EnforceRules); Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Upload'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); Cat['Rage'].QueueBottom(smRandom, NoRules); Cat['Daytime Mix'].QueueBottom(smLRP, EnforceRules); ActivePlayer.FadeToNext;; Link to comment Share on other sites More sharing options...
2prfm.com Posted July 16, 2011 Share Posted July 16, 2011 I recently discussed this on the spacial forums, and have a similar script going, but customed to my music library. Only thing is it is a great script if the radio station in question has one format. I'll have this scrip going through the entire week, then an actual clockwheel will take over 6:00 Friday evening for running an eighties show. This PAL script still cuts into the eighties show. My current work-around is to program into the event scheduler another copy of the script (different file name.PAL) with the "Loop set to false". This would be set 5:00 on Friday afternoon, to kill the looping script, well that's what I'm hoping as I am still trying this stuff out as I'm typing. Isn't there a PAL command, something like StopAllActiveScripts? Link to comment Share on other sites More sharing options...
SmoothJazz Posted July 17, 2011 Share Posted July 17, 2011 Isn't there a PAL command, something like StopAllActiveScripts?No there isn't a PAL command that does that. As you mentioned the way to stop a script is issue the PAL.Loop false command. Or set it to wait until a pre-determined time in the future. http://5280jazz.com/nowplaying_image/5280jazz.png Rob Oyler 5280 Jazz Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.