diff options
author | Ed Kelly <edkelly@users.sourceforge.net> | 2005-10-18 15:25:05 +0000 |
---|---|---|
committer | Ed Kelly <edkelly@users.sourceforge.net> | 2005-10-18 15:25:05 +0000 |
commit | eb8173324e5611defc3403d35b49d52dab86bc1c (patch) | |
tree | 3535075eda9cb18cb7859c0b906e8b8244496590 /listmoses/listmoses.c | |
parent | 61650518a5b63a113edafc9bc78126af18a0ee43 (diff) |
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
Diffstat (limited to 'listmoses/listmoses.c')
-rw-r--r-- | listmoses/listmoses.c | 29 |
1 files changed, 18 insertions, 11 deletions
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; |