Le Tuesday 26 August 2008 20:14:19 Fred, vous avez écrit :
> Salut les aminches !
Yopiyop !
> Currently i use a switch based transition* between 2 differents playlist
> (transition from a track based playlist to a mix based playlist)
> fade out, then 3 sec of blank, then jingle on top of a fade in.
>
> It's running well , but, for me, having:
> a fade out, then long jingle to announce the program , then fade in.
> is more nice..
>
> Is it possible to arrange that ?
> My "jingle" is a 20 or 30 secondes long. it's like playing a track
> as a transition between 2 sources, which is a bit "special".
>
> I don't know which kind of "tools" i can use to do this ??
Humm.. I believe you need the core "cross" operator there:
def seq_with_jingle(a,b) =
sequence(a,jingle,b)
end
def custom_cross(a,b) =
add(normalize=false,[fade.initial(b),fade.final(a)])
end
def transition(a,b) =
cross(custom_cross,seq_with_jingle(a,b))
end
I've not tested it, but the last cross call should do what you require: it
takes the source a,j,b and returns a source with its track crossed using the
custom_cross function.
You can tweak the parameters for each operator of course. Even better, you may
detect (using source.id for instance) in the custom_cross function wether a
or b is the jingle and don't apply any fade to it. That way you would really
have fade.out, jingle, fade.in, all crossed..
The code would be in this case:
def custom_cross(a,b) =
a = if source.id(a) != "jingle" then
fade.final(a)
else
a
end
b = if source.id(b) != "jingle" then
fade.initial(b)
else
b
end
add(normalize=false,[b,a])
end
Again, not tested :)
Romain
-------------------------------------------------------------------------
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