Finally this code worked, but there is an interesting thing - volume jumps
while fade, i've tried to specify that i need linear fade, but this didn't
helped:

def
> crossfadex(~id="",~conservative=true,~start_next=5.,~fade_in=3.,~fade_out=3.,s)
>   fader = fun (from,to) -> add([fade.initial(type="lin",
> to),fade.final(type="lin",from)])
>   cross(id=id,conservative=conservative,duration=start_next,fader,s)
> end


Track skipping is performed by source.skip()
Why volume can jump here?

2013/2/11 Alexander <truenr...@gmail.com>

> After using this function in telnet:
>
>> def tcp.track.skip(unused) =
>>   fader = fun (from,to) ->  add([fade.initial(to),fade.final(from)])
>>   ignore(cross(conservative=true,duration=5.,fader,playlist));
>>   "success"
>> end
>
>
>
>> server.register(namespace = "track",
>>   description="Skips current track, enforsing liquidsoap to play next
>> track",
>>   usage="skip", "skip", tcp.track.skip);
>
>
> I've got ERROR: Lang.Clock_conflict(_)
>
> 2013/2/11 Alexander <truenr...@gmail.com>
>
>> I've also tried a following solution:
>>
>> ...
>>> radio = fallback(live, playlist, security)
>>> def tcp.track.skip(unused) =
>>>    fader = fun (from,to) -> add([fade.initial(to),fade.final(from)])
>>>    cross(conservative=true,duration=5.,fader,radio)
>>>   "success"
>>> end
>>
>>
>> But liquidsoap says
>>
>>> At line 131, char 9-109: This term would evaluate to a (passive) source
>>> which
>>>   would then be dropped. This is usually the sign of a misunderstanding:
>>>   only active sources are animated on their own; dangling passive sources
>>>   are just dead code.
>>
>>
>> I'm finally lost, just no more ideas... Please, give an advice.
>>
>> 2013/2/11 Alexander <truenr...@gmail.com>
>>
>>> I found some letters regarding this issue:
>>> http://comments.gmane.org/gmane.comp.audio.liquidsoap.user/1720
>>>
>>> Currently i'm using just one source (working with request.dynamic) +
>>> crossfade function for it.
>>> Everything works fine, but when i try to make source.skip current
>>> playing track is not being faded out.
>>>
>>> I tried to change crossfade function with many variations, but this
>>> didn't worked.. The problem is that i don't understand even the way to fix
>>> it.. Could you assist please?
>>>
>>> Martin, have you finished this example? Which function did you used in
>>> your skip-wrapper?
>>>
>>> Is it possible to implement this on one source?
>>>
>>> Please help :((
>>>
>>> 2013/2/9 Alexander <truenr...@gmail.com>
>>>
>>>> Hello,
>>>>
>>>> i need to make a custom function, that will perform crossfade during
>>>> source.skip.
>>>> Currently while skipping current track is being still played for ~10
>>>> seconds (defined in start_next parameter crossfade function), but is not
>>>> being faded out.
>>>> New track is being faded in correctly.
>>>>
>>>> How it is possible to fade out currently playing track? I understood
>>>> that we can use metadata to show custom fades when track starts and when
>>>> track ends, but how are we able to perform fadeout immediately when we want
>>>> and use custom fade time?
>>>> e.g. which function can be used to start fade.out immediately?
>>>>
>>>> --
>>>> Kind regards,
>>>> Alexander.
>>>>
>>>
>>>
>>>
>>> --
>>> Kind regards,
>>> Alexander.
>>>
>>
>>
>>
>> --
>> Kind regards,
>> Alexander.
>>
>
>
>
> --
> Kind regards,
> Alexander.
>



-- 
Kind regards,
Alexander.
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to