Hi,

could anyone give me a short example how could I make an optional crossfade guided by annotate?

I mean, that I send e.g. following annotate string

annotate:crossfade_enabled="1",crossfade_length="5":/path/to/file

Then I want to use crossfade, or not with that file pointed by /path/to/file

My current configuration is just

def crossfade(source)
 def f(previous,next)
add(normalize=false,[sequence([blank(duration=5.),fade.in(duration=15.,next)]),fade.out(duration=15.,previous)])
 end
 cross(duration=15.,f,source)
end

(later:)

source = crossfade(source)


In general my system plays music, but it sometimes plays adverisements, and there should be no crossfade, just one song should end, than play next one (the advert) without any fades, than all next with crossfades, and all that in a round.

thanks in advance,

m.

Reply via email to