From b810cd1f4f95524debe30fe8805565aedfb151a3 Mon Sep 17 00:00:00 2001 From: Franz Zotter Date: Mon, 26 Sep 2005 07:57:02 +0000 Subject: added symbolic creation arguments or mode parameters "row" "col" ["mtx"] to below described externals. now the operation mode of these externs can be selected by arbitrary ordered creation argumens containing above symbols, or by a "mode col" etc. command. This makes it easier/more intuitive to patch without using help patches. svn path=/trunk/externals/iem/iemmatrix/; revision=3634 --- src/mtx_minmax.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/mtx_minmax.c') diff --git a/src/mtx_minmax.c b/src/mtx_minmax.c index 10f1453..03b81be 100644 --- a/src/mtx_minmax.c +++ b/src/mtx_minmax.c @@ -49,14 +49,13 @@ static void mTXSetMinMaxMode (MTXminmax *mtx_minmax_obj, t_symbol *m_sym) static void *newMTXMin (t_symbol *s, int argc, t_atom *argv) { MTXminmax *mtx_minmax_obj = (MTXminmax *) pd_new (mtx_minmax_class); - t_symbol *c_mode = 0; + mTXSetMinMaxMode (mtx_minmax_obj, gensym(":")); switch ((argc>1)?1:argc) { case 1: - c_mode = atom_getsymbol (argv); + mTXSetMinMaxMode (mtx_minmax_obj, atom_getsymbol (argv)); } mtx_minmax_obj->operator_minimum = 1; - mTXSetMinMaxMode (mtx_minmax_obj, c_mode); mtx_minmax_obj->list_outlet = outlet_new (&mtx_minmax_obj->x_obj, gensym("matrix")); return ((void *) mtx_minmax_obj); @@ -64,14 +63,13 @@ static void *newMTXMin (t_symbol *s, int argc, t_atom *argv) static void *newMTXMax (t_symbol *s, int argc, t_atom *argv) { MTXminmax *mtx_minmax_obj = (MTXminmax *) pd_new (mtx_minmax_class); - t_symbol *c_mode = 0; + mTXSetMinMaxMode (mtx_minmax_obj, gensym(":")); switch ((argc>1)?1:argc) { case 1: - c_mode = atom_getsymbol (argv); + mTXSetMinMaxMode (mtx_minmax_obj, atom_getsymbol (argv)); } mtx_minmax_obj->operator_minimum = 0; - mTXSetMinMaxMode (mtx_minmax_obj, c_mode); mtx_minmax_obj->list_outlet = outlet_new (&mtx_minmax_obj->x_obj, gensym("matrix")); return ((void *) mtx_minmax_obj); -- cgit v1.2.1