Mercurial > hg > libxtract
diff examples/puredata/xtract~.c @ 55:4ea1a8838b14
Finished the essentials of descriptors.c
author | Jamie Bullock <jamie@postlude.co.uk> |
---|---|
date | Sun, 21 Jan 2007 14:40:23 +0000 |
parents | 9762d7e3d129 |
children | 450712b21565 |
line wrap: on
line diff
--- a/examples/puredata/xtract~.c Thu Jan 11 16:37:50 2007 +0000 +++ b/examples/puredata/xtract~.c Sun Jan 21 14:40:23 2007 +0000 @@ -105,6 +105,7 @@ 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 @@ 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);