def crossfade(s) #duration is automatically overwritten by metadata fields passed in #with audio s = fade.in(type="log", duration=0., s) s = fade.out(type="log", duration=0., s) fader = fun (a,b) -> add(normalize=false,[b,a]) cross(fader,s) end
And I appreciate the code offered as a work around, but please ensure that the code is somehow logged in for the developers to find in the future.
I won't personally hack code into my system (since it makes future troubleshooting a nightmare) but these are all features we need, so we'll work it out manually in playlists and wait for it to be integrated into the system.
Thanks for your reply, but I know how it's done through the GUI, but can the same effect be archived using code? Also, it seems like the metadata is not shown when playing songs this way...
The method posted in that forum wiki is a quick hack that the Airtime Web UI does not know about. The Fade options in the GUI will not work. We will have an officially supported random song feature (with fading) scheduled for the future.
Thanks a lot for your comment Albert! Just wondering... what does all the shares mean (jingles, music,drops). I only have one share I grab my music from, can I remove all but the one called "music" or how does that part work? Trying it now. :)
Hi, Do you think it's possible to play a folder according to a specific time ?
Like ' 'default = rotate(weights=[1,3,1,3], [jingles, musicA,musicB,drops,musicA,musicB])
with "musicB" played between 2AM and 5AM and "musicA" anytime ?
/////// Idea number 2 : I'm really new on python and programmation, but I understood it was possible to use python to ask the ftp to change the name of a folder (ftplib?). I was thinking about this case :
Two folders : 01 with songs to be played from 1AM to 1PM 02 with songs to be played from 1PM to 1AM
The program change the name of the folder according to time with the name "OnAir"
Let's imagine our classic "default = rotate(weights=[1,3], [jingles, OnAir,]) " The program will read files from the OnAir folder. In reality OnAir is the folder 01 or 02 according to time.
first : call your playlist with names not 01, 02 or 03 second : I haven't tested that for the moment (i'm too busy) but perhaps add ,default a the end :