%include "jukebox.liq"
music = playlist(reload = 100, "/var/www/owncloud/data/niculin/files/random") #random playlist
music = skip_blank(threshold=-50.,length=3., music)
jingles = playlist(reload = 100, "/var/www/radio/jingles")
auto = rotate(weights = [1, 4],[jingles, music])
default = auto
def from_jukebox(old,new)
add(normalize=false,
[ sequence([ blank(duration=0.1),
fade.initial(duration=5.,new) ]),
fade.final(duration=5.,old) ])
end
def to_jukebox(a,b) =
log("transition called...")
source.skip(b)
add(normalize=false,
[ sequence([ blank(duration=0.01),
fade.initial(duration=!default_dj_fade, b) ]),
fade.final(duration=!default_dj_fade, a) ])
end
FrancescoP said:
aukondk said:
aukondk said:Reply to @nicolaM:
The problem seems familiar but I seem to remember for me it was only a split second of the old track and then only occasionally. My server might be a bit more powerful than yours and can process the script quicker.
Maybe try moving the source.skip() function to the from_jukebox function so the skipping happens earlier:
eg
def from_jukebox(old,new)
add(normalize=false,
[ sequence([ blank(duration=0.1),
fade.initial(duration=5.,new) ]),
fade.final(duration=5.,old) ])
source.skip(old)
end
and remove source.skip(b) from to_jukebox.
It looks like you're new here. If you want to get involved, click one of these buttons!