Hey guys,

I am trying to write a function (diff) that does nothing to the audio,
but shows the gain-difference another function (fx) makes in a meter.
Ideally this would work for any number of channels.

This is where I ran into trouble, as si.block not only terminates the
signal, but also kills the meter in the gui: (I am working on faustide)

Help much appreciated :)
Klaus

diff(fx) = _ <: fx, (_ <: fx,_ : - : dmeter : _*1 : si.block(1));

//metering
dmeter(x) = attach(x, envelop(x) : hbargraph("[unit:db]", -12, 12));
envelop  = abs : max(ba.db2linear(-70)) : ba.linear2db : min(10)  : max
~ -(10.0/ma.SR);



_______________________________________________
Faudiostream-users mailing list
Faudiostream-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to