For the record, I submitted this on the bug tracker :
https://github.com/savonet/liquidsoap/issues/81

On Thu, May 23, 2013 at 6:50 PM, Samuel Mimram <[email protected]> wrote:
> Hi,
>
> Unfortunately, your solution seems to be right I think, but it does
> not work here too.... Fortunately, there are other ways to achieve
> this and the following one seems to do the trick:
>
> def crossfade(s)
>   s = fade.in(duration=1.,s)
>   s = fade.out(duration=1.,s)
>   fader = fun (a,b) -> add(normalize=false,[b,a])
>   cross(duration=2., fader, s)
> end
>
> music = crossfade(random(transitions=[xfade,xfade],weights=[1,1],[s1,s2]))
>
> ++
>
> Sam.
>
> On Wed, May 15, 2013 at 1:16 PM, Thomas Bühlmann <[email protected]> wrote:
>> Hello list!
>>
>> I'm stuck (once more) here..
>>
>> I'm not sure, wether i use random() the right way, i can't get it to use
>> function xfade as transition.
>> (source1 and source2 are playlists)
>>
>> # A simple cross-fade
>> def xfade(a,b)
>>   add(normalize=false,
>>       [ sequence([ blank(duration=1.5),
>>                             fade.initial(duration=3.,b) ]),
>>                             fade.final(duration=3.,a) ])
>>                             end
>> ......
>> music=random(id="day_rotator",transitions=[xfade,xfade],weights=[1,1],[source1,source2])
>> ......
>> output.icecast(.......
>>
>> The log just shows:
>>  [day_rotator:3] Switch to day2 with forgetful transition.
>>  [day_rotator:3] Switch to day1 with forgetful transition.
>> and no transition is heard.
>>
>> The generic usage descriptions given on the api site are still somewhat
>> cryptic to me... :)
>>
>> Thanks for helping!
>>
>> --Tom
>>
>>
>> ------------------------------------------------------------------------------
>> AlienVault Unified Security Management (USM) platform delivers complete
>> security visibility with the essential security capabilities. Easily and
>> efficiently configure, manage, and operate all of your security controls
>> from a single console and one unified framework. Download a free trial.
>> http://p.sf.net/sfu/alienvault_d2d
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to