Kris Lipscombe wrote:
> >def f(a,b)
> >  log("transitioning")
> >  sequence([a,b])
> >end
> The logging part of this works fine. However calling sequence seems to
> be giving an issue. As sequence seems to be track sensitive it waits
> for the end of a track before skipping back to the ALSA input. In fact
> it doesn't seem to come back from Last.FM at all. Any work around to
> this?

If your transition is meant to quit the source A in the middle of a track
as soon as B becomes available, you can simply use:
def f(a,b)
  ...
  b
end

Writing a custom transition here is also an opportunity for crafting
a smoother one:
def f(a,b)
  ...
  sequence([fade.final(duration=2.,a), fade.initial(duration=2.,b)])
end
Now the source A will be faded out immediately, in the middle of its track,
and B will start smoothly.

You can also cross-fade by using add() instead of sequence()
as in the cookbook examples, etc etc.

Cheers,

David

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to