Hello,
I suggest you try the transition function I proposed in
https://github.com/savonet/liquidsoap/issues/1548#issuecomment-806164551
In your script it would be written as:
radio = fallback(track_sensitive=false, [studija, playlist],
transitions=[crossfade_3s, crossfade_3s])
Martin
p····· g······· a écrit le 23/05/2021 à 10:31 :
hi peeps!
so i made a radio which consists of live harbour source and file-based
source which is a rotation of rotations of playlists of tracks and
jingles.
as the file based source is defined as " playlist = rotate (weights =
[5, 1], [this, that]) ",
source.skip doesn't work on it (or for whatever other reason)...
i want to make it to behave so that when a fallback from live harbour
"studija" to playlist "playlist" happens, it doesn't pick up at the
place where it was last cut, but starts with the next track and has a
transition applied as usual.
my fallback and fade system goes like this:
------------
radio = fallback(track_sensitive=false, [studija, playlist])
def crossfade (~start_next=5.,~fade_in=0.5,~fade_out=3.,
~default=(fun (a,b) -> sequence([a, b])),
~high=-15., ~medium=-32., ~margin=4.,
~width=2.,~conservative=true,s)
fade.out = fade.out(type="sin",duration=fade_out)
fade.in = fade.in(type="sin",duration=fade_in)
add = fun (a,b) -> add(normalize=false,[b, a])
log = log(label="crossfade")
def transition(a,b,ma,mb,sa,sb)
list.iter(fun(x)-> log(level=4,"Before: #{x}"),ma)
list.iter(fun(x)-> log(level=4,"After : #{x}"),mb)
log("Transition: crossed, fade-in, fade-out.")
add(fade.out(sa),fade.in(sb))
end
cross(width=width, duration=start_next, conservative=conservative,
transition,s)
end
radio = crossfade(radio)
-------------
i found an thread with Romain suggesting a workaround
(https://github.com/savonet/liquidsoap/issues/530) , but this didn't
skip anything despite trying to define "on_track=on_track" for every
single playlist that gets rotated and fed to fallback pipeline.
also, when i issue a " list " command in telnet, my " rotate " items
are not listed - is there a way to give them names of some kind and
that they get treated as playlist? for sake of being able to skip to a
new track within them?
thxx!
p
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users