1 declare name "vumeter";
3 declare author "Grame";
5 declare copyright "(c)GRAME 2006";
7 //-------------------------------------------------
9 //-------------------------------------------------
15 vmeter(x) = attach(x, envelop(x) : vbargraph("[2][unit:dB]", -70, +5));
16 hmeter(x) = attach(x, envelop(x) : hbargraph("[2][unit:dB]", -70, +5));
18 envelop = abs : max ~ -(1.0/SR) : max(db2linear(-70)) : linear2db;