Here is my new crossfade
s = fade.in(duration=fade_in,s) s = fade.out(duration=fade_out,s)
fader = fun (a,b) -> add(normalize=false,[b,a])
cross(conservative=true,duration=start_next,minimum = -1.0,fader, s)
But it seems to still don't mix correctly.
I was wondering if my
input2 = on_metadata(fun (meta) -> system("curl http://something.radionomy.com/something.cfm?string=
before my icecast output could be the cause of some mix problems ? In
fact this http request takes less than one second. Should I use set
("scheduler.fast_queues",1) to avoid the problem ?
On 06 Jul 2009, at 17:56, Romain Beauxis wrote:
> Le vendredi 03 juillet 2009 18:05:06, Jean-Francois Mauguit a écrit :
> Hi !
>> As you know we have some problems with mix. On some radios,
>> is perfect, on some other not. What we have "found" is that the
>> problem occurs often when short songs are played. For example, on
>> radios with song - jingle - song - jingle - ... there is almost no
>> So I presumed I made something wrong in the liq :-)
>> Here is our crossfade definition
>> def our_crossfade(~start_next,~fade_in,~fade_out,s)
>> s = fade.in(duration=fade_in,s)
>> s = fade.out(duration=fade_out,s)
>> fader = fun (a,b) -> add(normalize=false,[b,a])
>> cross(duration=start_next,minimum = -1.0,fader, s)
>> input2=our_crossfade(start_next=6.0,fade_in=3.0,fade_out=3.0, input)
>> Value for start_next, fade_in and fade_out comes from the annotate
>> are right.
>> One other question concerning the same problem. What happen if we
>> 3 files playing at the same time ?
>> File 1 start_next = 120, fade_out 120
>> File 2 (duration = 140), start_next = 50, fade out = 50
>> File 3 fade_in = 50
>> So 120 s before the end of file 1 we start playing file 2 and 90
>> seconds later we start playing file 3 but file 1 is not yet ended.
> There can indeed be some issues with the remaining time, in
> particular since
> this is an estimated value. However, the crossfade have a
> conservative option.
> Using this option, the data needed for the crossfade is buffered in
> advance at
> the beginning of each track. Did you try with this option ?