mailbomber2001 Posted April 26, 2018 Share Posted April 26, 2018 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 Link to comment Share on other sites More sharing options...
SmoothJazz Posted April 26, 2018 Share Posted April 26, 2018 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 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 http://5280jazz.com/nowplaying_image/5280jazz.png Rob Oyler 5280 Jazz Link to comment Share on other sites More sharing options...
mailbomber2001 Posted April 26, 2018 Author Share Posted April 26, 2018 (edited) 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:thumbup: Edited April 26, 2018 by mailbomber2001 Link to comment Share on other sites More sharing options...
GKIye Posted April 26, 2018 Share Posted April 26, 2018 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 ! Link to comment Share on other sites More sharing options...
SmoothJazz Posted April 26, 2018 Share Posted April 26, 2018 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. http://5280jazz.com/nowplaying_image/5280jazz.png Rob Oyler 5280 Jazz Link to comment Share on other sites More sharing options...
shoutcaststreaming Posted April 27, 2018 Share Posted April 27, 2018 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 Link to comment Share on other sites More sharing options...
GKIye Posted April 27, 2018 Share Posted April 27, 2018 (edited) 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 Why ???? Please explain in detail your rational. Edited April 27, 2018 by GKIye typo Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
shoutcaststreaming Posted April 27, 2018 Share Posted April 27, 2018 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 Link to comment Share on other sites More sharing options...
GKIye Posted April 27, 2018 Share Posted April 27, 2018 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. 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 ! Link to comment Share on other sites More sharing options...
mailbomber2001 Posted April 29, 2018 Author Share Posted April 29, 2018 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! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now