hello,

transitions of our tracks are done with smart_crossfade from utils.liq.

source = smart_crossfade( source)

but we don't want our jingles and news tracks being faded in and out.
our jingles and news metadata "artist" fields all start with "ID_". so i 
thought to extend the function to do the job:
i inserted an if-clause at the beginning of the transition definition to 
filter the desired tracks:

def transition ( a, b, ma, mb, sa ,sb)

  if
       string.match( pattern='ID_.*', ma[artist])
    or string.match( pattern='ID_.*', ma[artist])
  then
    log( "Transition: none - jingle or news")
    default( sa, sb)

  elseif
    a <= medium ...

in the logs i see that the code filters as expected, but it doesn't 
prevent those tracks from being faded. i assume the final call to 
smart_cross is responsible. i tried to set the "width" and "start_next" 
parameters of smart_cross from inside the if-clause, but i think the 
scope is then limited to the "transition" definition and does not affect 
the call to smart_cross.
i hope you got an idea how i might solve this problem.

thanks in advance for your efforts
regards
peter

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to