aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/puredata/xtract~.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/examples/puredata/xtract~.c b/examples/puredata/xtract~.c
index 7866ff3..6c65e4b 100644
--- a/examples/puredata/xtract~.c
+++ b/examples/puredata/xtract~.c
@@ -123,11 +123,14 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) {
else if(tmp == gensym("sharpness")) x->feature = SHARPNESS;
else if(tmp == gensym("slope")) x->feature = SLOPE;
else if(tmp == gensym("f0")){
- x->feature = F0;
- x->argv = getbytes(sizeof(t_float));
- }
+ x->feature = F0;
+ x->argv = getbytes(sizeof(t_float));
+ }
else if(tmp == gensym("hps"))x->feature = HPS;
- else if(tmp == gensym("lowest_match"))x->feature = LOWEST_MATCH;
+ else if(tmp == gensym("lowest_match")){
+ x->feature = LOWEST_MATCH;
+ x->argv = getbytes(sizeof(t_float));
+ }
else if(tmp == gensym("magnitude_spectrum"))
x->feature = MAGNITUDE_SPECTRUM;
else if(tmp == gensym("autocorrelation")) x->feature = AUTOCORRELATION;