I was having a similar issue. I've got so far with this. As yet the jingle 
fades a little too quickly for my liking but I can live with it for now. It 
will depend on the style of jingle (soft and gentle or brash and bold).

```liq
news_time = {0m0s-2m29s}
news_jingle = single("/opt/liquidsoap/news_in.mp3")
jingles = playlist("/opt/liquidsoap/jingles.m3u")
news = playlist("/opt/liquidsoap/news.txt")
# radio = something infallible
# assuming 'radio' already exists as an infallible source
def news_transition(j,a,b)
  log(label="mystuff", "starting my transition")
  add(normalize=false,
    [
      fade.initial(duration=.5,sequence(merge=true,[blank(duration=4.),b])),
      sequence(
        merge=true,
        [
          blank(duration=1.),
          j
        ]
      ),
      fade.final(duration=2.,a)
    ]
  )
end


radio = fallback(
  track_sensitive=false, 
  transitions=[news_transition(jing), news_transition(once(jingles))], 
  [switch([(news_time,news)]), radio]
)
```

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

Reply via email to