Hi Andreas, Without knowing you're asking several non-trivial questions at a time.
On Thu, Dec 10, 2009 at 7:27 AM, Andreas Volk <[email protected]> wrote: > I would like to crossfade between tracks in a rotation. Before the > rotation is started an intro should be played. Is there a relationship between the two. If not, then let's just wrap you rotate([..]) in a smart_crossfade, it fulfills the first goal. For the second one, I'd rather insert the single in a transition at the level of your switch (using the transitions parameter), something along the line of switch([rot,not_rot],transitions=[fun(a,b)->sequence([a,s_intro,b]),whatever]) where whatever could be fun(a,b)->sequence([a,b]). Now, I suspect you won't be satisfied with this solution. I bet that you want that the sequence is restarted whenever the switch switches to it. But as you've written it, only one sequence is created, and it never winds back. One way of getting a fresh sequence each time is to use a transition as I did above. Without more details, I'm not sure if it's appropriate in your case. Now the main question, maybe: > s_intro = single("...") > s_rot = smart_crossfade(rotate([pl1,pl2,pl3])) > s_seq = sequence([s_intro, s_rot]) > > When s_seq becomes active (e.g. by a switch statement) s_intro is > played but at its end it is crossfaded into the first track of s_rot. > My assumption that the crossfading only applies to the transitions > between tracks of s_intro seems to be wrong. Any idea? Indeed, that's weird, smart_crossfade should only apply between tracks produced by the inner rotate(..), so roughly the tracks of s_rot. It should not apply between a track of s_intro and s_rot. Are you sure of what you heard? Could it come from some other part of your script? Cheers, -- David ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
