Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.

Play more previously requested songs

From SpacialAudio

Jump to: navigation, search

For those of you (like me) that use Category Rotation logic for a normal, regular schedule and want to play more previously requested songs, check this PAL out.

My PALs (http://www.festerhead.com/samweb/pals.php) -> categories.pal

What does it do?

It maintains three categories called (by default) 'Top Alltime', 'Top Monthly', and 'Top Weekly' with (by default) up to 100, 50, and 25 of the top requested songs per category respectively based on played requests.

By default, it is set to fire off (clean and rebuild) the categories once a day at 1AM.

How do you use it?

1. Go into your SAM and add the categories 'Top Alltime', 'Top Monthly', and 'Top Weekly' (without the quotes) or if you choose your own three category names, please edit the PAL.

2. If you want more or less songs in these categories, edit the PAL.

3. Add the PAL to your SAM using your configuration of preference. I put mine on auto-start.

4. Start the PAL.

5. Save your SAM configuration.

6. Edit your category rotation login to pull songs from these categories.

Example:

Cat.QueueBottom('Top Alltime',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Top Monthly',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Top Weekly',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Top Alltime',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);
Cat.QueueBottom('Songs',smRandom, prEnforceRules);

Please note in the example above the category 'Songs' is not present in a default SAM environment. Therefore, this is not a copy-n-paste category rotation logic replacement for you.

Also note the use of rule enforcement.

Here's a quote from one of my listeners: I'm really noticing a difference in the song rotation. Now I can request a broader range of songs -- knowing that all my favorites will still be played.

As with all my scripts; if you don't configure it, don't expect it to work properly.

Enjoy.

You can download the script here. http://spacialaudio.com/knowledge/attachment.php?attId=75

Personal tools