Hey,

On Thu, Sep 4, 2008 at 8:51 PM, Fred <[EMAIL PROTECTED]> wrote:
> - "cross" can make transition only between 2 differents tracks of the same 
> source ?

Right.

> - to make transition between 2 differents sources I'have to use "transition" 
> function ?
> (in my case it's transition between 2 differents sources)

The misunderstanding might be there, a tricky problem of language.
You're using a transition function, but that function can be called
david or fred, it does not matter. I would say that to obtain a
transition between two sources, you use the "transitions" parameter of
the fallback() function -- or any other switch operator, e.g.
random().

I'll write in full details how your new script could be, with
unambiguous names. I hope it'll help.

# My "crossfade", with mixin_jingle passed as an argument
def goldorak(mixin_jingle,a,b)
  sequence([ fade.final(duration=8.,a),
             mixin_jingle,
             fade.initial(duration=7.,b) ])
end

# You old "transition"
def buddha(j,a,b)
  add(normalize=false,
    [ fade.initial(b),
      sequence(merge=true,
        [ blank(duration=1.), j ,fallback([]) ]),
      fade.final(a) ])
end

jingles_transition = playlist("desjingles.pls")

radio = fallback(track_sensitive=false,
                 transitions=[ goldorak(jingles_transition),
buddha(jinglemix) ],
                 [ tracks, tracksmix ])

What matters here is the parameter labeled "transitions". Its value
means that goldorak() will be used for transitioning from tracksmix to
tracks, and buddha() used for the other direction. You can use
goldorak() twice, or buddha() twice, it does not matter. The two
functions are given their first parameter, to tell them where to get
the jingles; two parameters remain, that's what fallback() expects
(functions with two parameters, one for the old and one for the new
track). If you use goldorak() twice, it should probably be with two
different playlists.

Have fun,

David

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to