From: James M. <jam...@so...> - 2012-03-08 02:01:14
|
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 <to...@ra...> wrote: > Hi, > > 2012/3/7 James Moon <jam...@so...>: > > 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 jam...@so... www.sourcefabric.com | *www.sourcefabric.org* 720 Bathurst St. Suite 203 M5S 2R4, Toronto, ON, Canada |