I've been using this code I got somewhere off the site or maybe some other, 
can't remember.  I don't think this is would be a proper place for the 
simple_crossfade function.

`# Switch to Live Source when connected
# Transistion to Live source with Jingle
# Define a transition that fades out the
# old source, adds a single, and then 
# plays the new source
def to_live(jingle,old,new) = 
  # Fade out old source
  old = fade.final(old)
  # Superpose the jingle
  s = add([jingle,old])
  # Compose this in sequence with
  # the new source
  sequence([s,new])
end

# A transition when switching back to files:
def to_file(old,new) =
  # We skip the file
  # currently in new
  # in order to being with
  # a fresh file
  source.skip(new) 
  sequence([old,new])
end

# The transition to live1
djannounce = single("/home/user/Music/Radio/Jingles/YOUR DJ FOR THIS 
EVENING.MP3")
to_live1 = to_live(djannounce)

# Combine lives and files:
radio = fallback(track_sensitive=false, transitions=[to_live1, to_file], [live, 
radio]) 

`

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/746#issuecomment-479696278
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to