Le vendredi 3 décembre 2010 10:56:19, Francesco P. Sileno a écrit :
> Hi all!

        Hi Francesco !

> I'm a newbie in the liquidsoap world, when I've been asked to help in 
> setting up a web-radio I've opted for this software - which I think I 
> will never leave even if it is too heavy to run on an Alix! :)

Thanks and welcome aboard !

> I'm trying to do some transition with fallback on 3-source: live, studio 
> and emergency. What I want is that when switching to the emergency 
> playlist, there are first 5 seconds of noise(), and then the actual MP3s 
> playlist fade in.
> 
> I've tried many combination of add/sequence both in the fallback 
> definition and in the crossfade function, what I don't understand is why 
> in the following example the noise doesn't stop after 5 seconds but last 
> forever (the same appen whith blank() - but with noise() every 5 seconds 
> there is a restart of normalization with a gain peak):
> 
> def crossfade_noise(from, to)
> 
>         add(normalize = false, [
>                 sequence([
>                         fade.final(duration = .5, from),
>                         fade.initial(duration = .5,
>                                 normalize(
>                                         gain_min = -40.,
>                                         gain_max = -10.,
>                                         target = -25.,
>                                         noise(duration = 5.)
>                                 )
>                         )
>                 ]),
>                 fade.initial(duration = 6., to)
>         ])
> end
> 
> Cna someone help me in understand what I'm doing wrong? I'm using 
> liquidsoap 0.9.3 from the Debian repository.

I think your problem comes from the following point:
 * when adding two sources, for instance:
  add([s,s']) 
then track limits and metadata are taken from the _first_ source.

Thus, in your script, you should put the destination source _first_. Otherwise, 
the switch may be confused, in particular if it is not track_sensitive.

I would suspect that, in your case, the sources keeps on switching again and 
again using this transitions..

You should better use this:
def crossfade_noise(from, to)

        add(normalize = false, [
                fade.initial(duration = 6., to),
                sequence([
                        fade.final(duration = .5, from),
                        fade.initial(duration = .5,
                                normalize(
                                        gain_min = -40.,
                                        gain_max = -10.,
                                        target = -25.,
                                        noise(duration = 5.)
                                )
                        )
                ])
        ])
end

And it should be ok.

As a side note: David, do we check for fallability of switched sources and the 
like taking into account the fallibility of the transitions? I bet no and I 
also bet it is not possible... Should we be conservative in this case and 
declare the whole source fallible?


Romain

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to