From: Paul Brossier Date: Mon, 30 Dec 2013 21:58:20 +0000 (-0400) Subject: src/: only post version in debug methods X-Git-Tag: 0.4~1 X-Git-Url: https://git.aubio.org/?p=pd-aubio.git;a=commitdiff_plain;h=dd755320013f1e963e5b7d6fd702ed2d04d88d26 src/: only post version in debug methods --- diff --git a/src/aubioonset~.c b/src/aubioonset~.c index f5efd03..5fad09c 100644 --- a/src/aubioonset~.c +++ b/src/aubioonset~.c @@ -63,6 +63,7 @@ aubioonset_tilde_dsp (t_aubioonset_tilde * x, t_signal ** sp) static void aubioonset_tilde_debug (t_aubioonset_tilde * x) { + post (aubioonset_version); post ("aubioonset~ bufsize:\t%d", x->bufsize); post ("aubioonset~ hopsize:\t%d", x->hopsize); post ("aubioonset~ threshold:\t%f", x->threshold); @@ -87,7 +88,6 @@ aubioonset_tilde_new (t_floatarg f) floatinlet_new (&x->x_obj, &x->threshold); x->onsetbang = outlet_new (&x->x_obj, &s_bang); - post (aubioonset_version); return (void *) x; } diff --git a/src/aubiopitch~.c b/src/aubiopitch~.c index d591aa2..07b4aac 100644 --- a/src/aubiopitch~.c +++ b/src/aubiopitch~.c @@ -60,6 +60,7 @@ static void aubiopitch_tilde_dsp(t_aubiopitch_tilde *x, t_signal **sp) static void aubiopitch_tilde_debug(t_aubiopitch_tilde *x) { + post(aubiopitch_version); post("aubiopitch~ bufsize:\t%d", x->bufsize); post("aubiopitch~ hopsize:\t%d", x->hopsize); post("aubiopitch~ threshold:\t%f", x->threshold); @@ -84,7 +85,6 @@ static void *aubiopitch_tilde_new (t_symbol * s) //floatinlet_new (&x->x_obj, &x->threshold); x->pitch = outlet_new (&x->x_obj, &s_float); - post(aubiopitch_version); return (void *)x; } diff --git a/src/aubioquiet~.c b/src/aubioquiet~.c index d477cc2..c2e9eb2 100644 --- a/src/aubioquiet~.c +++ b/src/aubioquiet~.c @@ -74,6 +74,7 @@ static void aubioquiet_tilde_dsp(t_aubioquiet_tilde *x, t_signal **sp) static void aubioquiet_tilde_debug(t_aubioquiet_tilde *x) { + post(aubioquiet_version); post("aubioquiet~ bufsize:\t%d", x->bufsize); post("aubioquiet~ hopsize:\t%d", x->hopsize); post("aubioquiet~ threshold:\t%f", x->threshold); @@ -95,7 +96,6 @@ static void *aubioquiet_tilde_new (t_floatarg f) floatinlet_new (&x->x_obj, &x->threshold); x->quietbang = outlet_new (&x->x_obj, &s_bang); x->noisybang = outlet_new (&x->x_obj, &s_bang); - post(aubioquiet_version); return (void *)x; } diff --git a/src/aubiotempo~.c b/src/aubiotempo~.c index 64e58af..2067e73 100644 --- a/src/aubiotempo~.c +++ b/src/aubiotempo~.c @@ -65,6 +65,7 @@ static void aubiotempo_tilde_dsp(t_aubiotempo_tilde *x, t_signal **sp) static void aubiotempo_tilde_debug(t_aubiotempo_tilde *x) { + post(aubiotempo_version); post("aubiotempo~ bufsize:\t%d", x->bufsize); post("aubiotempo~ hopsize:\t%d", x->hopsize); post("aubiotempo~ threshold:\t%f", x->threshold); @@ -92,7 +93,6 @@ static void *aubiotempo_tilde_new (t_floatarg f) floatinlet_new (&x->x_obj, &x->threshold); x->tempobang = outlet_new (&x->x_obj, &s_bang); x->onsetbang = outlet_new (&x->x_obj, &s_bang); - post(aubiotempo_version); return (void *)x; } diff --git a/src/aubiotss~.c b/src/aubiotss~.c index 71dd53a..8f91024 100644 --- a/src/aubiotss~.c +++ b/src/aubiotss~.c @@ -76,6 +76,7 @@ static void aubiotss_tilde_dsp(t_aubiotss_tilde *x, t_signal **sp) static void aubiotss_tilde_debug(t_aubiotss_tilde *x) { + post(aubiotss_version); post("aubiotss~ bufsize:\t%d", x->bufsize); post("aubiotss~ hopsize:\t%d", x->hopsize); post("aubiotss~ threshold:\t%f", x->thres); @@ -111,7 +112,6 @@ static void *aubiotss_tilde_new (t_floatarg f) floatinlet_new (&x->x_obj, &x->thres); outlet_new(&x->x_obj, gensym("signal")); outlet_new(&x->x_obj, gensym("signal")); - post(aubiotss_version); return (void *)x; } diff --git a/src/aubiozcr~.c b/src/aubiozcr~.c index 874a266..52afb38 100644 --- a/src/aubiozcr~.c +++ b/src/aubiozcr~.c @@ -55,6 +55,7 @@ static void aubiozcr_tilde_dsp(t_aubiozcr_tilde *x, t_signal **sp) static void aubiozcr_tilde_debug(t_aubiozcr_tilde *x) { + post(aubiozcr_version); post("aubiozcr~ bufsize:\t%d", x->bufsize); post("aubiozcr~ audio in:\t%f", x->vec->data[0]); } @@ -69,7 +70,6 @@ static void *aubiozcr_tilde_new (void) x->vec = (fvec_t *)new_fvec(x->bufsize); x->zcr = outlet_new (&x->x_obj, &s_float); - post(aubiozcr_version); return (void *)x; }