diff options
author | Jamie Bullock <jamie@postlude.co.uk> | 2007-01-21 14:40:23 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@postlude.co.uk> | 2007-01-21 14:40:23 +0000 |
commit | 64d6de56068584a090e555abf49a16d6bdf97696 (patch) | |
tree | d9c797059926b38069337aec6e872c9064387a7d /examples/puredata/xtract~.c | |
parent | 03faa4383048ec211eea920c6ec56544037191c9 (diff) | |
download | LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.tar.gz LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.tar.bz2 LibXtract-64d6de56068584a090e555abf49a16d6bdf97696.zip |
Finished the essentials of descriptors.c
Diffstat (limited to 'examples/puredata/xtract~.c')
-rw-r--r-- | examples/puredata/xtract~.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/puredata/xtract~.c b/examples/puredata/xtract~.c index a1fdb76..b89287f 100644 --- a/examples/puredata/xtract~.c +++ b/examples/puredata/xtract~.c @@ -105,6 +105,7 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { t_xtract_tilde *x = (t_xtract_tilde *)pd_new(xtract_class); xtract_mel_filter *mf; t_int n, N, f, F, n_args, type; + t_float *argv_max; t_function_descriptor *fd; char *p_name, *p_desc, *author; int *year; @@ -138,6 +139,10 @@ static void *xtract_new(t_symbol *me, t_int argc, t_atom *argv) { type = fd[f].argv.type; if(n_args){ + for(n = 0; n < n_args; n++){ + argv_max = &fd[f].argv.max[n]; + post("Argument %d, max: %.2f", n, *argv_max); + } if(type == MEL_FILTER){ x->memory.argv = (size_t)(n_args * sizeof(xtract_mel_filter)); x->argv = (xtract_mel_filter *)getbytes(x->memory.argv); |