2011/11/14 Henry Favretto <[email protected]>: > Hi there, Hi Henry!
> I recently migrated my old script from 0.9.3 to 1.0.0 running on my trusty old > Debian Lenny box without much trouble except for one rather subtle issue > regarding the smart_crossfade utility function... > > In my script I use it this way: > > ************************ > # Crossfade songs 15 seconds > fade.out = fade.out(type="sin",duration=15.0) > fade.in = fade.in(type="sin",duration=10.0) > add = fun (a,b) -> add(normalize=false,[b, a]) > radio = smart_crossfade( > fade_out = 15.0, > fade_in = 10.0, > start_next = 25.0, > margin = 3.0, > high = -15.0, > medium = -30.0, > conservative = true, > default = fun (a,b) -> add(fade.out(a),fade.in(b)), > radio > ) > ************************ > > I noticed (by listening to the stream and looking at the log) that for some > reason my provided default transition is never applied e.g. when "No > transition. > Using default" is logged then the sequence transition is still used (the > function's default). > > IIRC the same script used to work as expected in 0.9.3 e.g. using a crossfade > when the default transition is applied... > > Did I miss something? There is a subtle detail with add() that could explain your issue or at least needs a fix. By default, add([a,b,c,d]) relays metadata and track limits of the first source, a in this example. Thus, on your script, you should write: default = fun (a,b) -> add([fade.in(b),fade.out(a)]) (by the way, did you miss the [ ] in your example?) since you want metadata and track limit from the new source (b). Please, try this and let us know if your issue is still not fixed :-) Romain ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
