From 5879bc9332a97d74274f79a1b9207928b3f2c11b Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 29 Sep 2007 21:36:48 +0000 Subject: renamed help files to standard name and removed class_sethelpsymbol since it is unnecessary and gets in the way svn path=/trunk/externals/ekext/; revision=8774 --- sieve/help-sieve.pd | 123 ---------------------------------------------------- sieve/sieve-help.pd | 123 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sieve/sieve.c | 2 +- 3 files changed, 124 insertions(+), 124 deletions(-) delete mode 100755 sieve/help-sieve.pd create mode 100755 sieve/sieve-help.pd (limited to 'sieve') diff --git a/sieve/help-sieve.pd b/sieve/help-sieve.pd deleted file mode 100755 index e472628..0000000 --- a/sieve/help-sieve.pd +++ /dev/null @@ -1,123 +0,0 @@ -#N canvas 439 25 595 461 10; -#X obj 94 346 sieve; -#X msg 147 276 set 2 1; -#X msg 198 276 set 7 0.86; -#X msg 148 198 map 0 1 0 0 0 3 0 2 0 0.7; -#X msg 147 229 get 0; -#X msg 147 250 get 1; -#X floatatom 37 384 5 0 0 0 - - -; -#X floatatom 81 382 5 0 0 0 - - -; -#X obj 129 379 print MAPOUT; -#X obj 218 379 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X obj 218 397 print EXACT; -#X obj 37 419 print MAPPED; -#X obj 81 399 print VALUE; -#X msg 147 324 clear; -#X text 189 228 get map; -#X text 189 249 get inverted map; -#X floatatom 309 406 5 0 0 0 - - -; -#X floatatom 350 406 5 0 0 0 - - -; -#X obj 341 363 prepend map; -#X obj 395 405 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 --1; -#X text 189 323 clear object; -#X text 277 277 set [location \, value]; -#X msg 147 297 set 2 0; -#X text 201 297 unset location; -#X text 332 196 set map; -#X floatatom 35 318 5 0 0 0 - - -; -#X obj 29 184 vradio 15 1 0 4 empty empty mode 0 -6 0 10 -262144 -1 --1 0; -#X msg 29 248 mode \$1; -#X text 62 170 : 0=exact \, 1=nearest \, 2=shunt up \, 3=shunt down -; -#X obj 341 383 sieve; -#X obj 22 19 sieve; -#X text 62 19 takes integers and maps them to floats if they are set. -; -#X text 63 32 in the default mode (mode 0) integers without an associated -float are blocked \, so a map will sieve the input.; -#X text 64 60 mode 1 forces the sieve to choose the nearest index \, -so that inputs are sent to alternative outputs. The rightmost output -bangs only if the input is exact.; -#X text 64 101 In modes 2 and 3 the sieve chooses the next map up or -the next map down. If the input is higher than the highest mapped integer -in mode 2 \, or lower than the lowest in mode 3 \, then the shunting -is wrapped and the lowest or highest is chosen respectively.; -#X text 294 330 when the inverted map is sent to another; -#X text 298 344 sieve object \, the input is segregated.; -#X text 38 440 Polyphony control objects by Ed Kelly \, November 2006 -; -#X text 411 439 See also; -#X obj 476 438 polymap; -#X obj 476 417 polystat; -#X obj 532 438 maskxor; -#X obj 410 181 loadbang; -#X obj 410 233 delay 50; -#N canvas 0 0 596 300 register_functions 0; -#X obj 99 208 sieve; -#X msg 99 83 map 0 1 2 4 5 6 7 9 10 11 12; -#X obj 99 47 loadbang; -#X msg 157 166 get 0; -#X msg 254 125 delete 8; -#X msg 255 167 shunt 5; -#X obj 194 166 delay 0; -#X msg 194 149 bang; -#X msg 254 241 insert 7 100; -#X msg 256 203 shift 5; -#X obj 125 269 print REGMAP; -#X floatatom 38 166 5 0 0 0 - - -; -#X floatatom 35 257 5 0 0 0 - - -; -#X msg 160 57 map 1 1 1 1 1 1 1 1 1 1 1 1; -#X text 324 124 removes an element from the array; -#X text 318 166 removes an element from the array and; -#X text 319 178 subtracts 1 from subsequent elements; -#X text 320 201 shifts elements downstream \, adding 1; -#X text 319 213 to each element \, from a specific point; -#X text 349 242 inserts an element into the array; -#X connect 0 0 12 0; -#X connect 0 2 10 0; -#X connect 1 0 0 0; -#X connect 2 0 1 0; -#X connect 3 0 0 0; -#X connect 4 0 0 0; -#X connect 4 0 7 0; -#X connect 5 0 0 0; -#X connect 5 0 7 0; -#X connect 6 0 3 0; -#X connect 7 0 6 0; -#X connect 8 0 0 0; -#X connect 8 0 7 0; -#X connect 9 0 0 0; -#X connect 9 0 7 0; -#X connect 11 0 0 0; -#X connect 13 0 0 0; -#X restore 325 298 pd register_functions; -#X connect 0 0 6 0; -#X connect 0 1 7 0; -#X connect 0 2 8 0; -#X connect 0 2 18 0; -#X connect 0 3 9 0; -#X connect 1 0 0 0; -#X connect 2 0 0 0; -#X connect 3 0 0 0; -#X connect 4 0 0 0; -#X connect 5 0 0 0; -#X connect 6 0 11 0; -#X connect 7 0 12 0; -#X connect 9 0 10 0; -#X connect 13 0 0 0; -#X connect 13 0 18 0; -#X connect 18 0 29 0; -#X connect 22 0 0 0; -#X connect 25 0 0 0; -#X connect 25 0 29 0; -#X connect 26 0 27 0; -#X connect 27 0 0 0; -#X connect 29 0 16 0; -#X connect 29 1 17 0; -#X connect 29 3 19 0; -#X connect 42 0 3 0; -#X connect 42 0 43 0; -#X connect 43 0 5 0; diff --git a/sieve/sieve-help.pd b/sieve/sieve-help.pd new file mode 100755 index 0000000..e472628 --- /dev/null +++ b/sieve/sieve-help.pd @@ -0,0 +1,123 @@ +#N canvas 439 25 595 461 10; +#X obj 94 346 sieve; +#X msg 147 276 set 2 1; +#X msg 198 276 set 7 0.86; +#X msg 148 198 map 0 1 0 0 0 3 0 2 0 0.7; +#X msg 147 229 get 0; +#X msg 147 250 get 1; +#X floatatom 37 384 5 0 0 0 - - -; +#X floatatom 81 382 5 0 0 0 - - -; +#X obj 129 379 print MAPOUT; +#X obj 218 379 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X obj 218 397 print EXACT; +#X obj 37 419 print MAPPED; +#X obj 81 399 print VALUE; +#X msg 147 324 clear; +#X text 189 228 get map; +#X text 189 249 get inverted map; +#X floatatom 309 406 5 0 0 0 - - -; +#X floatatom 350 406 5 0 0 0 - - -; +#X obj 341 363 prepend map; +#X obj 395 405 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 189 323 clear object; +#X text 277 277 set [location \, value]; +#X msg 147 297 set 2 0; +#X text 201 297 unset location; +#X text 332 196 set map; +#X floatatom 35 318 5 0 0 0 - - -; +#X obj 29 184 vradio 15 1 0 4 empty empty mode 0 -6 0 10 -262144 -1 +-1 0; +#X msg 29 248 mode \$1; +#X text 62 170 : 0=exact \, 1=nearest \, 2=shunt up \, 3=shunt down +; +#X obj 341 383 sieve; +#X obj 22 19 sieve; +#X text 62 19 takes integers and maps them to floats if they are set. +; +#X text 63 32 in the default mode (mode 0) integers without an associated +float are blocked \, so a map will sieve the input.; +#X text 64 60 mode 1 forces the sieve to choose the nearest index \, +so that inputs are sent to alternative outputs. The rightmost output +bangs only if the input is exact.; +#X text 64 101 In modes 2 and 3 the sieve chooses the next map up or +the next map down. If the input is higher than the highest mapped integer +in mode 2 \, or lower than the lowest in mode 3 \, then the shunting +is wrapped and the lowest or highest is chosen respectively.; +#X text 294 330 when the inverted map is sent to another; +#X text 298 344 sieve object \, the input is segregated.; +#X text 38 440 Polyphony control objects by Ed Kelly \, November 2006 +; +#X text 411 439 See also; +#X obj 476 438 polymap; +#X obj 476 417 polystat; +#X obj 532 438 maskxor; +#X obj 410 181 loadbang; +#X obj 410 233 delay 50; +#N canvas 0 0 596 300 register_functions 0; +#X obj 99 208 sieve; +#X msg 99 83 map 0 1 2 4 5 6 7 9 10 11 12; +#X obj 99 47 loadbang; +#X msg 157 166 get 0; +#X msg 254 125 delete 8; +#X msg 255 167 shunt 5; +#X obj 194 166 delay 0; +#X msg 194 149 bang; +#X msg 254 241 insert 7 100; +#X msg 256 203 shift 5; +#X obj 125 269 print REGMAP; +#X floatatom 38 166 5 0 0 0 - - -; +#X floatatom 35 257 5 0 0 0 - - -; +#X msg 160 57 map 1 1 1 1 1 1 1 1 1 1 1 1; +#X text 324 124 removes an element from the array; +#X text 318 166 removes an element from the array and; +#X text 319 178 subtracts 1 from subsequent elements; +#X text 320 201 shifts elements downstream \, adding 1; +#X text 319 213 to each element \, from a specific point; +#X text 349 242 inserts an element into the array; +#X connect 0 0 12 0; +#X connect 0 2 10 0; +#X connect 1 0 0 0; +#X connect 2 0 1 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 4 0 7 0; +#X connect 5 0 0 0; +#X connect 5 0 7 0; +#X connect 6 0 3 0; +#X connect 7 0 6 0; +#X connect 8 0 0 0; +#X connect 8 0 7 0; +#X connect 9 0 0 0; +#X connect 9 0 7 0; +#X connect 11 0 0 0; +#X connect 13 0 0 0; +#X restore 325 298 pd register_functions; +#X connect 0 0 6 0; +#X connect 0 1 7 0; +#X connect 0 2 8 0; +#X connect 0 2 18 0; +#X connect 0 3 9 0; +#X connect 1 0 0 0; +#X connect 2 0 0 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 6 0 11 0; +#X connect 7 0 12 0; +#X connect 9 0 10 0; +#X connect 13 0 0 0; +#X connect 13 0 18 0; +#X connect 18 0 29 0; +#X connect 22 0 0 0; +#X connect 25 0 0 0; +#X connect 25 0 29 0; +#X connect 26 0 27 0; +#X connect 27 0 0 0; +#X connect 29 0 16 0; +#X connect 29 1 17 0; +#X connect 29 3 19 0; +#X connect 42 0 3 0; +#X connect 42 0 43 0; +#X connect 43 0 5 0; diff --git a/sieve/sieve.c b/sieve/sieve.c index d7ff641..fd1639c 100755 --- a/sieve/sieve.c +++ b/sieve/sieve.c @@ -395,7 +395,7 @@ void sieve_setup(void) post("|^^^^^^^^^^^^^sieve^^^^^^^^^^^^^|"); post("|->^^^integer map to floats^^^<-|"); post("|^^^^^^^Edward Kelly 2006^^^^^^^|"); - class_sethelpsymbol(sieve_class, gensym("help-sieve")); + class_addfloat(sieve_class, sieve_float); class_addmethod(sieve_class, (t_method)sieve_set, gensym("set"), A_DEFFLOAT, A_DEFFLOAT, 0); class_addmethod(sieve_class, (t_method)sieve_map, gensym("map"), A_GIMME, 0); -- cgit v1.2.1