Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21287
Modified Files: Tag: desiredata desire.c Log Message: readded rms= and peak= for [vu]
Index: desire.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/desire.c,v retrieving revision 1.1.2.217.2.70 retrieving revision 1.1.2.217.2.71 diff -C2 -d -r1.1.2.217.2.70 -r1.1.2.217.2.71 *** desire.c 14 Dec 2006 02:18:26 -0000 1.1.2.217.2.70 --- desire.c 14 Dec 2006 04:01:08 -0000 1.1.2.217.2.71 *************** *** 7117,7122 **** static float vu_round(float v) {return 0.01*(int)(100.0*v+0.5);}
! static void vu_float0(t_vu *x, t_floatarg v) {SET(rms, vuify(x,v)); SET(fr,vu_round(v)); outlet_float(x->out_rms, x->fr);} ! static void vu_float1(t_vu *x, t_floatarg v) {SET(peak,vuify(x,v)); SET(fp,vu_round(v)); outlet_float(x->out_peak,x->fp);}
static void vu_bang(t_vu *x) { --- 7117,7126 ---- static float vu_round(float v) {return 0.01*(int)(100.0*v+0.5);}
! static void vu_float0(t_vu *x, t_floatarg v) { ! SET(rms, vuify(x,v)); SET(fr,vu_round(v)); outlet_float(x->out_rms, x->fr); ! sys_mgui(x,"rms=","f",x->rms);} ! static void vu_float1(t_vu *x, t_floatarg v) { ! SET(peak,vuify(x,v)); SET(fp,vu_round(v)); outlet_float(x->out_peak,x->fp); ! sys_mgui(x,"peak=","f",x->peak);}
static void vu_bang(t_vu *x) {