From 98e3e1214cf71a62b2de938c9c7e07f6bdd0090c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 9 Feb 2010 23:53:34 +0000 Subject: make vv+ and vv- be vvplus and vvminus naturally svn path=/trunk/externals/smlib/; revision=13157 --- help/vv+-help.pd | 25 ------------------------- help/vv--help.pd | 23 ----------------------- help/vvminus-help.pd | 23 +++++++++++++++++++++++ help/vvplus-help.pd | 25 +++++++++++++++++++++++++ source/vvminus.c | 3 ++- source/vvplus.c | 3 ++- 6 files changed, 52 insertions(+), 50 deletions(-) delete mode 100644 help/vv+-help.pd delete mode 100644 help/vv--help.pd create mode 100644 help/vvminus-help.pd create mode 100644 help/vvplus-help.pd diff --git a/help/vv+-help.pd b/help/vv+-help.pd deleted file mode 100644 index 04c3065..0000000 --- a/help/vv+-help.pd +++ /dev/null @@ -1,25 +0,0 @@ -#N canvas 561 440 313 218 10; -#X obj 40 115 vv+; -#X msg 16 81 1 2 3; -#X msg 73 85 4 5 6; -#X msg 159 86 1 2 3; -#X msg 219 86 4; -#X obj 180 116 vv+ 0; -#X msg 16 57 1; -#X msg 159 62 1; -#X text 18 10 vv+ adds two lists of floats; -#X text 17 25 or a float to a list of floats; -#X msg 73 60 3 2 1; -#X obj 252 159 SMLib-help; -#X text 230 184 j#|@2002; -#X obj 40 139 print vv+; -#X obj 180 140 print vv+; -#X connect 0 0 13 0; -#X connect 1 0 0 0; -#X connect 2 0 0 1; -#X connect 3 0 5 0; -#X connect 4 0 5 1; -#X connect 5 0 14 0; -#X connect 6 0 0 0; -#X connect 7 0 5 0; -#X connect 10 0 0 1; diff --git a/help/vv--help.pd b/help/vv--help.pd deleted file mode 100644 index 48c626b..0000000 --- a/help/vv--help.pd +++ /dev/null @@ -1,23 +0,0 @@ -#N canvas 561 440 326 219 10; -#X msg 25 90 1 2 3; -#X msg 82 94 4 5 6; -#X msg 168 95 1 2 3; -#X msg 228 95 4; -#X msg 25 66 1; -#X msg 168 71 1; -#X text 248 191 j#|@2002; -#X text 18 10 vv- substracts two lists of floats; -#X text 18 26 or a float from a list of floats; -#X obj 49 124 vv-; -#X obj 189 125 vv- 0; -#X obj 268 170 SMLib-help; -#X obj 49 148 print vv-; -#X obj 189 149 print vv-; -#X connect 0 0 9 0; -#X connect 1 0 9 1; -#X connect 2 0 10 0; -#X connect 3 0 10 1; -#X connect 4 0 9 0; -#X connect 5 0 10 0; -#X connect 9 0 12 0; -#X connect 10 0 13 0; diff --git a/help/vvminus-help.pd b/help/vvminus-help.pd new file mode 100644 index 0000000..48c626b --- /dev/null +++ b/help/vvminus-help.pd @@ -0,0 +1,23 @@ +#N canvas 561 440 326 219 10; +#X msg 25 90 1 2 3; +#X msg 82 94 4 5 6; +#X msg 168 95 1 2 3; +#X msg 228 95 4; +#X msg 25 66 1; +#X msg 168 71 1; +#X text 248 191 j#|@2002; +#X text 18 10 vv- substracts two lists of floats; +#X text 18 26 or a float from a list of floats; +#X obj 49 124 vv-; +#X obj 189 125 vv- 0; +#X obj 268 170 SMLib-help; +#X obj 49 148 print vv-; +#X obj 189 149 print vv-; +#X connect 0 0 9 0; +#X connect 1 0 9 1; +#X connect 2 0 10 0; +#X connect 3 0 10 1; +#X connect 4 0 9 0; +#X connect 5 0 10 0; +#X connect 9 0 12 0; +#X connect 10 0 13 0; diff --git a/help/vvplus-help.pd b/help/vvplus-help.pd new file mode 100644 index 0000000..04c3065 --- /dev/null +++ b/help/vvplus-help.pd @@ -0,0 +1,25 @@ +#N canvas 561 440 313 218 10; +#X obj 40 115 vv+; +#X msg 16 81 1 2 3; +#X msg 73 85 4 5 6; +#X msg 159 86 1 2 3; +#X msg 219 86 4; +#X obj 180 116 vv+ 0; +#X msg 16 57 1; +#X msg 159 62 1; +#X text 18 10 vv+ adds two lists of floats; +#X text 17 25 or a float to a list of floats; +#X msg 73 60 3 2 1; +#X obj 252 159 SMLib-help; +#X text 230 184 j#|@2002; +#X obj 40 139 print vv+; +#X obj 180 140 print vv+; +#X connect 0 0 13 0; +#X connect 1 0 0 0; +#X connect 2 0 0 1; +#X connect 3 0 5 0; +#X connect 4 0 5 1; +#X connect 5 0 14 0; +#X connect 6 0 0 0; +#X connect 7 0 5 0; +#X connect 10 0 0 1; diff --git a/source/vvminus.c b/source/vvminus.c index b6a8e1a..b8b7246 100644 --- a/source/vvminus.c +++ b/source/vvminus.c @@ -131,8 +131,9 @@ static void *vvminus_new(t_symbol *s, int argc, t_atom *argv) void vvminus_setup(void) { - vvminus_class = class_new(gensym("vv-"), (t_newmethod)vvminus_new, + vvminus_class = class_new(gensym("vvminus"), (t_newmethod)vvminus_new, (t_method)vvminus_free, sizeof(t_vvminus), 0, A_GIMME, 0); + class_addcreator((t_newmethod)vvplus_new, gensym("vv-"), A_GIMME, 0); class_addlist(vvminus_class, vvminus_lst); class_addmethod (vvminus_class, (t_method)vvminus_lst2, gensym(""), A_GIMME, 0); vvminus_scal_class = class_new(gensym("vv-"), 0, (t_method)vvminus_free, diff --git a/source/vvplus.c b/source/vvplus.c index e2b323c..a49ce39 100644 --- a/source/vvplus.c +++ b/source/vvplus.c @@ -131,8 +131,9 @@ static void *vvplus_new(t_symbol *s, int argc, t_atom *argv) void vvplus_setup(void) { - vvplus_class = class_new(gensym("vv+"), (t_newmethod)vvplus_new, + vvplus_class = class_new(gensym("vvplus"), (t_newmethod)vvplus_new, (t_method)vvplus_free, sizeof(t_vvplus), 0, A_GIMME, 0); + class_addcreator((t_newmethod)vvplus_new, gensym("vv+"), A_GIMME, 0); class_addlist(vvplus_class, vvplus_lst); class_addmethod (vvplus_class, (t_method)vvplus_lst2, gensym(""), A_GIMME, 0); vvplus_scal_class = class_new(gensym("vv+"), 0, (t_method)vvplus_free, -- cgit v1.2.1