Hello,

Here is my new crossfade

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(conservative=true,duration=start_next,minimum = -1.0,fader, s)
end
input2=our_crossfade(start_next=6.0,fade_in=3.0,fade_out=3.0, input)

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= 
"^fluxid^","^quote(meta["album"])),input2)

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 ?

TIA,

Jef

On 06 Jul 2009, at 17:56, Romain Beauxis wrote:

> Le vendredi 03 juillet 2009 18:05:06, Jean-Francois Mauguit a écrit :
>> Hello,
>
>       Hi !
>
>> As you know we have some problems with mix. On some radios,  
>> everything
>> 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  
>> mix.
>>
>> 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)
>> end
>>
>> 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  
>> and
>> are right.
>>
>> One other question concerning the same problem. What happen if we  
>> have
>> 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 ?
>
>
> Romain



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to