Hi Romain,
This is what I get:
cannot apply that parameter because the function
(at ../python_apps/pypo/liquidsoap_scripts/ls_lib.liq, line 25, char 32)
has no argument labeled "override"!
on this code:
def transition(a,b) =
log("transition called...")
add(normalize=false,
[ sequence([ blank(duration=2.),
fade.initial(duration=!default_dj_fade_in, override="",
b) ]),
fade.final(duration=!default_dj_fade_out, override="", a) ])
end
No "override" parameter allowed for fade.initial() function....
On Wed, Mar 7, 2012 at 9:01 PM, James Moon <[email protected]>wrote:
> Hi Romain,
>
> Keep in mind that I'm using fade.initial(), which doesn't have "override"
> parameter in their signature(according to your api doc)
>
> But I know fade.in() does. Do they work the same way?
>
> Thank you!
>
> On Wed, Mar 7, 2012 at 8:30 PM, Romain Beauxis <[email protected]>wrote:
>
>> Hi,
>>
>> 2012/3/7 James Moon <[email protected]>:
>> > The problem was solve after I changed my transition function as follow:
>> >
>> >
>> > def transition(a,b) =
>> > log("transition called...")
>> > add(normalize=false,
>> > [ sequence([ blank(duration=2.),
>> > fade.initial(duration=!default_dj_fade_in, b) ]),
>> > fade.final(duration=!default_dj_fade_out, a) ])
>> > end
>> >
>> > Thank you for your help.
>>
>> Cool!
>>
>> > But I have one more question.
>> > We create annotation like below:
>> >
>> >
>> annotate:media_id="%s",liq_start_next="%s",liq_fade_in="%s",liq_fade_out="%s",liq_cue_in="%s",liq_cue_out="%s",schedule_table_id="%s":%s
>> >
>> > and pass it to liquidsoap.
>> > These are our queue used for default fallback source.
>> >
>> > When liq_fade_in and liq_fade_out are passed to liquidsoap, in time of
>> > transition, those values are used instead of one's that were specified
>> in
>> > the transition function.
>> > I know this is expected behaviour as LS documentation explains, but is
>> there
>> > any way to override those values in annotation?
>>
>> Just change the default override parameters on those fade.*:
>>
>> * override : string (default: "liq_fade_in")
>> Metadata field which, if present and containing a float, overrides
>> the 'duration' parameter for current track.
>>
>> Romain
>>
>
>
>
> --
> James Moon
> Software Developer, Sourcefabric
> [email protected]
>
> www.sourcefabric.com | *www.sourcefabric.org*
>
> 720 Bathurst St. Suite 203
> M5S 2R4, Toronto, ON, Canada
>
>
--
James Moon
Software Developer, Sourcefabric
[email protected]
www.sourcefabric.com | *www.sourcefabric.org*
720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users