From eb8173324e5611defc3403d35b49d52dab86bc1c Mon Sep 17 00:00:00 2001 From: Ed Kelly Date: Tue, 18 Oct 2005 15:25:05 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r3731, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/ekext/; revision=3732 --- listmoses/listmoses.c | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) (limited to 'listmoses/listmoses.c') diff --git a/listmoses/listmoses.c b/listmoses/listmoses.c index ab61db1..864b683 100644 --- a/listmoses/listmoses.c +++ b/listmoses/listmoses.c @@ -36,6 +36,13 @@ typedef struct _listmoses void listmoses_list(t_listmoses *x, t_symbol *s, int argc, t_atom *argv) { + float temp; + if (x->highsplit < x->lowsplit) + { + temp = x->highsplit; + x->highsplit = x->lowsplit; + x->lowsplit = temp; + } float current, curamps; int i; x->low_argc = 0; @@ -96,21 +103,21 @@ void listmoses_bang(t_listmoses *x) void *listmoses_new(t_symbol *s, int argc, t_atom *argv) { t_listmoses *x = (t_listmoses *)pd_new(listmoses_class); - switch(argc) + x->highsplit = 96; + x->lowsplit = 36; +/* switch(argc) { - default: - case 2: + default: + case 2: x->highsplit = atom_getfloat(argv+1); + //x->lowsplit = atom_getfloat(argv); + case 1: + //x->highsplit = atom_getfloat(argv); x->lowsplit = atom_getfloat(argv); - case 1: - x->highsplit = atom_getfloat(argv); - x->lowsplit = 0; break; - case 0: - x->highsplit = 96; - x->lowsplit = 36; - } - + case 0: + } */ // I don't know why it doesn't work with args! + x->low_argc = 0; x->mid_argc = 0; x->high_argc = 0; -- cgit v1.2.1