# HERE is where we start hacking! - krypton #default = amplify(id="silence_src", 0.00001, noise()) # Playlists jingles = playlist(mode='random',reload=3600,"/srv/airtime/standby/jingles") ads = playlist(mode='random',"/srv/airtime/standby/ads") chill = playlist(mode='random',reload=3600,"/srv/airtime/standby/chill") #christmas = playlist(mode='random',"/srv/airtime/standby/christmas") #halloween = playlist(mode='random',"/srv/airtime/standby/halloween") #july4 = playlist(mode='random',"/srv/airtime/standby/july4") pop = playlist(mode='random',reload=3600,"/srv/airtime/standby/pop") serenehappy = playlist(mode='random',reload=3600,"/srv/airtime/standby/serenehappy") stationids = playlist(mode='random',reload=3600,"/srv/airtime/standby/stationids") #xminusone = playlist(mode='random',"/srv/airtime/standby/xminusone") #superman = playlist("/srv/airtime/standby/superman") #theshadow = playlist("/srv/airtime/standby/theshadow") clocks = switch([ ({00h00m},delay(30.,single("/srv/airtime/standby/clock/00h.mp3"))), ({01h00m},delay(30.,single("/srv/airtime/standby/clock/01h.mp3"))), ({02h00m},delay(30.,single("/srv/airtime/standby/clock/02h.mp3"))), ({03h00m},delay(30.,single("/srv/airtime/standby/clock/03h.mp3"))), ({04h00m},delay(30.,single("/srv/airtime/standby/clock/04h.mp3"))), ({05h00m},delay(30.,single("/srv/airtime/standby/clock/05h.mp3"))), ({06h00m},delay(30.,single("/srv/airtime/standby/clock/06h.mp3"))), ({07h00m},delay(30.,single("/srv/airtime/standby/clock/07h.mp3"))), ({08h00m},delay(30.,single("/srv/airtime/standby/clock/08h.mp3"))), ({09h00m},delay(30.,single("/srv/airtime/standby/clock/09h.mp3"))), ({10h00m},delay(30.,single("/srv/airtime/standby/clock/10h.mp3"))), ({11h00m},delay(30.,single("/srv/airtime/standby/clock/11h.mp3"))), ({12h00m},delay(30.,single("/srv/airtime/standby/clock/12h.mp3"))), ({13h00m},delay(30.,single("/srv/airtime/standby/clock/13h.mp3"))), ({14h00m},delay(30.,single("/srv/airtime/standby/clock/14h.mp3"))), ({15h00m},delay(30.,single("/srv/airtime/standby/clock/15h.mp3"))), ({16h00m},delay(30.,single("/srv/airtime/standby/clock/16h.mp3"))), ({17h00m},delay(30.,single("/srv/airtime/standby/clock/17h.mp3"))), ({18h00m},delay(30.,single("/srv/airtime/standby/clock/18h.mp3"))), ({19h00m},delay(30.,single("/srv/airtime/standby/clock/19h.mp3"))), ({20h00m},delay(30.,single("/srv/airtime/standby/clock/20h.mp3"))), ({21h00m},delay(30.,single("/srv/airtime/standby/clock/21h.mp3"))), ({22h00m},delay(30.,single("/srv/airtime/standby/clock/22h.mp3"))), ({23h00m},delay(30.,single("/srv/airtime/standby/clock/23h.mp3"))) ]) #Schedule earlymorning = random(weights = [3, 2, 1, 1, 1, 1], [chill, serenehappy, ads, jingles, stationids, clocks]) weekmorning = random(weights = [3, 2, 1, 1, 1, 1], [serenehappy, pop, ads, jingles, stationids, clocks]) weekafternoon = random(weights = [3, 2, 1, 1, 1, 1], [pop, serenehappy, ads, jingles, stationids, clocks]) weeknights = random(weights = [3, 2, 1, 1, 1, 1, 1], [serenehappy, pop, chill, ads, jingles, stationids, clocks]) fridaymorning = random(weights = [4, 3, 1, 1, 1, 1], [pop, serenehappy, ads, jingles, stationids, clocks]) fridayafternoon = random(weights = [3, 2, 1, 1, 1, 1], [pop, serenehappy, ads, jingles, stationids, clocks]) fridaynight = random(weights = [3, 1, 1, 1, 1], [pop, ads, jingles, stationids, clocks]) saturdaymorning = random(weights = [3, 2, 1, 1, 1, 1], [serenehappy,pop,ads,jingles, stationids, clocks]) saturdayafternoon = random(weights = [3, 1, 1, 1, 1], [pop, jingles, ads, stationids, clocks]) saturdaynight = random(weights = [3, 2, 1, 1, 1, 1], [serenehappy,chill,ads,jingles, stationids, clocks]) sundaymorning = random(weights = [3, 2, 1, 1, 1, 1], [serenehappy,pop,jingles,ads, stationids, clocks]) sundayafternoon = random(weights = [3, 2, 1, 1, 1, 1], [pop,serenehappy,jingles,ads, stationids, clocks]) sundaynight = random(weights = [3, 2, 1, 1, 1, 1], [chill,serenehappy,jingles,ads, stationids, clocks]) security = single("/srv/airtime/ifallelsefails/welldone.mp3") daily_schedule = switch([ ({ (0h-6h)}, earlymorning), ({ (1w or 2w or 3w or 4w) and 6h-13h}, weekmorning), ({ (1w or 2w or 3w or 4w) and 13h-20h}, weekafternoon), ({ (1w or 2w or 3w or 4w) and 20h-23h59}, weeknights), ({ (2w or 3w or 4w or 5w) and 0h-6h}, weeknights), ({ (5w) and 6h-13h}, fridaymorning), ({ (5w) and 13h-20h}, fridayafternoon), ({ (5w) and 20h-23h59}, fridaynight), ({ (6w) and 0h-6h}, fridaynight), ({ (6w) and 6h-13h}, saturdaymorning), ({ (6w) and 13h-20h}, saturdayafternoon), ({ (6w) and 20h-23h59}, saturdaynight), ({ (7w) and 0h-6h}, saturdaynight), ({ (7w) and 6h-13h}, sundaymorning), ({ (7w) and 13h-20h}, sundayafternoon), ({ (7w) and 20h-23h59}, sundaynight), ({ (1w) and 0h-6h}, sundaynight), ({true}, pop) # for when nothing else is covered ]) mixed=daily_schedule jingles=delay(1.,jingles) ads=delay(1.,jingles) stationids=delay(1.,jingles) mixed=rotate(weights=[1,1,1,1],[jingles, stationids, ads, mixed]) default=fallback(track_sensitive=false,[mixed,security])