Welcome to liquidsoap, 2010/12/3 Francesco P. Sileno <[email protected]>: > I've tried many combination of add/sequence both in the fallback definition > and in the crossfade function, what I don't understand is why in the > following example the noise doesn't stop after 5 seconds but last forever > (the same appen whith blank() - but with noise() every 5 seconds there is a > restart of normalization with a gain peak):
When you use noise(duration=X) you get a source that produces tracks of X seconds. But it still produces infinitely many of them if needed. What you want it use it in a context that only takes the first track. Your simplest option is to use once(noise(duration=X)) and everytime a transition is fired a new once(..) operator will be created (among others) that will only allow one track to pass through -- the point here is that it's important to create the once(..) node within the transition, not outside. Another option, less interesting IMO, but worth mentioning for the understanding, is to put your noise source within the fade.final(..). Indeed, that operator is another example of something that will let some data pass through (at most "duration" seconds of data) and then hide any remaining available data. I hope this helps. Have fun playing with various examples! -- David PS: I would use amplify() instead of normalize() because it's less CPU intensive. Also on newer liquidsoap I think we have an amplitude parameter for noise() and the like. ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
