Results 1 to 10 of 10
  1. #1

    Title
    Junior Broadcaster
    Join Date
    Apr 2018
    Posts
    3
    Rep Power
    0

    Lightbulb simple pal script

    Hello!I am new to sam broadcaster and i am looking for a very simple pal script.

    I have a category named "Tracks" and a category named "Ads".
    What i want to do:
    Play from cat "Tracks" 10 songs with "the least played artist rule" and then 1 ad from cat "Ads".
    Then,play another 10 songs with "the least played artist rule" and then 1 ad from cat "Ads".
    and repeat all the time this.


    Nothing else like volume,decks,song info....Only this simple loop.
    Have in mind that i have the option "keep 5 songs in the queue" because with 0 songs in the queue after some time i get an error like that: " there is no song in the queue an after 20 tries" it stops autodj an turn to queue

  2. #2

    Title
    Avid Broadcaster
    Join Date
    May 2009
    Posts
    119
    Rep Power
    12
    Why would you want a PAL script to do this when it would be better as a clockwheel? Set SAM to keep 3 tracks in the queue (if you do more the chances opf getting duplicates in the queue is increased)

    Save this as a clockwheel
    Code:
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Tracks'].QueueBottom(smLRP, EnforceRules);
    Cat['Ads'].QueueBottom(smLRP, NoRules);
    Use the event Scheduler to load the clo0ckwheel or simply load it with the Config>>Playlist Rotation Rules>>Playlist Logic Modules editor

    Rob Oyler
    5280 Jazz

  3. #3

    Title
    Junior Broadcaster
    Join Date
    Apr 2018
    Posts
    3
    Rep Power
    0
    Thank you for your answer!I will try this now!As i said i am very new to sam broadcaster and i dont know many about the settings or pal.I knew it was easy but i dont have the knowledge Thank you again!
    Its working fine!!!! ty again
    Last edited by mailbomber2001; 04-26-2018 at 07:31 PM.

  4. #4
    GKIye's Avatar
    Title
    Moderator
    Join Date
    Nov 2008
    Location
    @ home
    Posts
    3,006
    Rep Power
    69
    Indeed, making a clockwheel is the most logical thing to do.
    See "Config" > Playlist Rotation Rules > click Configure and add the items of your choice.
    Important : Save the clockwheel !!

    One tip of advice :
    Don't use "least played ..." but set them as "smLemmingLogic"
    Visit and listen @ BW !



  5. #5

    Title
    Avid Broadcaster
    Join Date
    May 2009
    Posts
    119
    Rep Power
    12
    FYI, smLRPA is the least played artist logic rule, I gave you the clockwheel for Least Recently Played. You mentioned that SAM couldn't find tracks and that could be why, hence the least played tracks. GKIye suggested smLemming logic which randomly selects the logic from all the logic's available, personally I would never use it, try smRandom on a few to introduce a bit of randomness to SAM's selections.

    Rob Oyler
    5280 Jazz

  6. #6
    shoutcaststreaming's Avatar
    Title
    Premium Member
    Join Date
    Sep 2008
    Location
    Los Angeles, California
    Posts
    784
    Rep Power
    29
    Quote Originally Posted by GKIye
    Don't use "least played ..." but set them as "smLemmingLogic"
    Why ???? Please explain in detail your rational.
    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

  7. #7
    GKIye's Avatar
    Title
    Moderator
    Join Date
    Nov 2008
    Location
    @ home
    Posts
    3,006
    Rep Power
    69
    Hi SCS,

    I have a best (better) experience with it.
    smLemmingLogic use each rule once in a row of the commands.
    So it plays song A as Most recently song, B as Least recently song, C as Most recently artist, D as Least recently artist etc etc

    Well thats what I have learned through the past years.
    Random gave a too high return of played songs in a too short time, and other songs were skipped.

    To prevent that some songs are returning anyway during 36 to 48 hours I'm using 2 different clockwheels.
    They have both the same format, but CW 1 takes songs from the location XX80s and CW 2 takes them from YY80s. The same happens to all other genres ...
    Both are switched every 6 hours ... For reason that returning song title is set to 29 hours I create a better rotation of all songs
    There is a current archive of 14.000+ songs
    Quote Originally Posted by shoutcaststreaming View Post
    Why ???? Please explain in detail your rational.
    Last edited by GKIye; 04-27-2018 at 03:02 AM. Reason: typo
    Visit and listen @ BW !



  8. #8
    shoutcaststreaming's Avatar
    Title
    Premium Member
    Join Date
    Sep 2008
    Location
    Los Angeles, California
    Posts
    784
    Rep Power
    29
    smLemmingLogic randomly picks from one of the following (smWeighted, smPriority, smRandom, smMRPA, smLRPA, smMRP, smLRP) to pick the song for that Category.

    So it doesn't make sense that it is random, as it can pick the most recently played song / artist during the selection process.

    I would use smRandom and then change my song weights (Tools > Maintenance > Reset Wright Balance) once every few weeks.
    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

  9. #9
    GKIye's Avatar
    Title
    Moderator
    Join Date
    Nov 2008
    Location
    @ home
    Posts
    3,006
    Rep Power
    69
    In general You are right.

    I learned after years of streaming, since 2002, that smLemmingLogic gives very good results if the software is continuous online (a Month or longer before a reboot is made).
    It reflects very nicely to the rotation and picks more often lesser played songs.
    If the software gets a reboot every week, than the problem can be that the database takes the same songs more often.

    I accept that everyone has their own experiences, I'm not perfect and no one is.

    Quote Originally Posted by shoutcaststreaming View Post
    smLemmingLogic randomly picks from one of the following (smWeighted, smPriority, smRandom, smMRPA, smLRPA, smMRP, smLRP) to pick the song for that Category.

    So it doesn't make sense that it is random, as it can pick the most recently played song / artist during the selection process.

    I would use smRandom and then change my song weights (Tools > Maintenance > Reset Wright Balance) once every few weeks.
    Visit and listen @ BW !



  10. #10

    Title
    Junior Broadcaster
    Join Date
    Apr 2018
    Posts
    3
    Rep Power
    0
    I think i like better smLRP than lemming because with lemming there are times that it picks same artist or song, but i will try different rules in the future to see if is better.Until now its working fine.Thank you guys!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •