Jump to content

Help With pal script


Recommended Posts

This is what I am looking to do, as much as I am a computer nerd with hardware, this pal thing I can’t get a grip on, I have done several mods on ones I have seen on the net and my music stations run pretty good, but to build my otr radio I want to play dragnet or whatever at a certain time each night randomly so each night a different episode. Any help appreciated.

I have been running a few Internet radio stations for fun, but now with time on my hands I want to run them better, I am need help with this issue:

I run a OTR station, what I am looking for is a Sam pal script that will play certain programs at a certain time, ex: F:\my Music\Barrie Craig\ (File name or prefer randomly) @ let’s say 8 pm each night, let’s say there are 150 MP3 Programs in that directory, My main concern is that it plays random each night at 8 pm, Monday through Friday, and same set up but different programs Saturday and Sunday. I would like to do this for 15 different programs. I have done some basic pal scripts, but nothing of this size. I intend to do this for the 24/7 so listeners know when a certain program is on, just like days of old.

so I would want it to play from that directory at a certain time, most programs or under 30 minutes and I would like to start 1 program at top of hour and 1 different directory at: 30 minutes past, I use Sam 4.6.4, I am thinking Big band will fill in the difference, that part I figured out, any help appreciated, and if someone can help me, please let me know.

Link to comment
Share on other sites

You posted the exact same thing in another thread. One is good enough.

 

I think you are making this more difficult than it is.

 

The best way to do it is to set up a few different clockwheels. M-F and Sat. & Sun. Then kick them off in the Event Scheduler. Much easier than a PAL script.

 

You can also have your liners play from the clockwheel so the listeners know what program they are listening to.

SCS - Dedicated Bandwidth Servers

Shoutcast / Icecast / Windows Media

Transcoding - Auto DJ - Mobile Radio - FLASH Players - Auto DJ

Broadcasting World's Stream Host of the Month

Link to comment
Share on other sites

First of all. i am sorry about double post, thought i could delete 1st post as i found what i thought was a better place to post it, Second, thank you for the response. i understand about the clock wheels, i just dont understand how to write it to do what i want. I have the basics of the pal script , but not enough to do what i want with pal or clockwheel. If i can get an example to try or some guidence would be appreciated. I have been doing internet radio for about 3 years and survived pretty well. But the OTR station, needs this as most listners are overseas and look for a certian time for the program. Again any help or guidence appreciated
Link to comment
Share on other sites

You can use for example the TOTH script

The only thing you have to do is change the directory (location of your episodes) and write it as EnforceRules

example :

Cat ['Advertisements (ALL)'].QueueTop(smLemmingLogic,NoRules);

becomes ....

Cat ['YourDirectory (ALL)'].QueueTop(smLemmingLogic,EnforceRules);

PS : Leave the QueueTop to start it at the right sheduled time

 

If that script has to be played every day at the same time

configure the script as :

- automatic start = YES

- PAL.WaitForTime(T['xx:59:35']); change xx to your sheduled hour ex : 22 or other time

 

If all is set , "save it as ..." to your PAL directory (see Software > SpacialAudio > PAL) and click "run"

Link to comment
Share on other sites

ok, i see what your saying, i think part of my issue was i wasn't sure how to add catagories, i will use your example as a trial and see if i can create a catagory in lets say other, my last big question is will this play the files randomly?, and again thanks
Link to comment
Share on other sites

You're right ...

The easiest way to do is :

see directory "Other"

open = "Other All" is visible

Click "right click" on the top directory "Other" and choose "New"

This way you can create easily a new directory ex: DRAGNET

Into DRAGNET load all your episodes

PAL solution is :

Cat ['DRAGNET'].QueueTop(smLemmingLogic,EnforceRules);

Be sure to write (copy) the same "name" of directory (capital or/and lower cases) ... and your finished and ready to use it

Good luck !

Link to comment
Share on other sites

{Wait for right time}

PAL.Loop := true;

PAL.WaitForTime(T['21:59:35']);

Cat ['Dragnet'].QueueTop(smLemmingLogic,EnforceRules);

ActivePlayer.FadeToNext;

function ActivePlayer:TPlayer;

begin

if DeckA.Status = psPlaying then

Result := DeckA

else

Result := DeckB;

end;

 

 

?

Link to comment
Share on other sites

I Got It, Thank you for the help, with a bunch of fooling and following your instructions , got it going, Thanks For the Help & patiance, Steve, Now i have a better idea on how it works, i will expand my knowleadge of the scripting, I feel like Hellen Keller when she figured out how to communicate! And i use her as an example because she was an amazing women.
Link to comment
Share on other sites

That has to be the right one :)

 

Just as an inquiry to you, and interesting to know, if you are new to the use of it ...

remember this :

If you have a similar radioset (so coming from the same directory) on different days (so not daily) ... make this setup of your PAL

click - new PAL > config automatic start NO > save as ... to your SAM software

By using your Event Sheduler you are now able to start your set on different days (so far not daily)

Example :

Weekdays : shedule seperated days - ex: Monday, Wednesday, Friday and load the PAL about 5 minutes before your set starts

If you wonna play this radioset on Weekdays only (Mon > Fri) ... shedule your Event Sheduler as load PAL "Mon - Fri" each time more or less 5 minutes before starting of your set

 

Because you made a config set to "automatic start = NO" its gonna be played only once ... to succeed change PAL.Loop := true; into PAL.Loop := false;

see quote :

{Wait for right time}

PAL.Loop := false;

PAL.WaitForTime(T['21:59:35']);

Cat ['Dragnet'].QueueTop(smLemmingLogic,EnforceRules);

ActivePlayer.FadeToNext;

function ActivePlayer:TPlayer;

begin

if DeckA.Status = psPlaying then

Result := DeckA

else

Result := DeckB;

end;

Link to comment
Share on other sites

Ok, so the below script will run on pal every day same time if i want? i can also us the other for event? so far i have just used a modified one for event sked, so the below will play through pal every day? haveing two options is always good.

 

 

 

{Wait for right time}

PAL.Loop := false;

PAL.WaitForTime(T['21:59:35']);

Cat ['Dragnet'].QueueTop(smLemmingLogic,EnforceRules);

ActivePlayer.FadeToNext;

function ActivePlayer:TPlayer;

begin

if DeckA.Status = psPlaying then

Result := DeckA

else

Result := DeckB;

end;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...