Update of /cvsroot/pure-data/externals/mapping In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15612
Added Files: median-help.pd median.pd Log Message: Adding median.pd
--- NEW FILE: median-help.pd --- #N canvas 748 316 556 301 10; #X obj 16 105 cnv 15 60 60 empty empty empty 20 12 0 14 -258699 -66577 0; #X floatatom 22 30 5 0 0 0 - - -; #X floatatom 22 220 5 0 0 0 - - -; #X text 120 166 Calculates the median of the last n numbers in a stream of numbers.; #X text 120 221 )c( Alexandre Quessy 2006; #X msg 89 55 123 234 345 123 345 67; #X obj 56 81 drip; #X obj 184 197 zexy; #X text 118 197 Requires; #X text 191 118 [median <sample set size>]; #N canvas 0 0 342 294 more 0; #X obj 90 103 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X obj 267 103 vsl 15 128 0 127 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X text 71 66 Play with the left one.; #X obj 127 139 median 25; #X connect 0 0 3 0; #X connect 3 0 1 0; #X restore 404 261 pd more examples; #X msg 87 29 999 999 7 6 5 0 0; #X obj 268 197 expr; #X text 230 197 and; #X text 94 82 Needs a stream of floats , not a list; #X obj 22 115 median 6; #X text 122 243 Release under the GPL v2; #X connect 1 0 15 0; #X connect 5 0 6 0; #X connect 6 0 15 0; #X connect 11 0 6 0; #X connect 15 0 2 0;
--- NEW FILE: median.pd --- #N canvas 609 51 652 617 10; #X obj 88 37 inlet; #X obj 254 115 f $1; #X obj 117 321 list split 5; #X obj 159 490 list split 1; #X obj 159 550 outlet; #X obj 255 85 loadbang; #X obj 342 86 inlet; #X obj 127 461 list split; #X obj 126 371 sort; #X obj 117 237 list append; #X obj 290 316 expr rint(($f1+1)/2)-1; #X text 329 585 )c( Alexandre Quessy 2006; #X text 203 59 arg/ inlet 2 : Number of values in the sample set of data.; #X text 86 12 inlet 1 : float; #X text 214 547 median; #X connect 0 0 9 0; #X connect 1 0 2 1; #X connect 1 0 10 0; #X connect 2 0 8 0; #X connect 2 0 9 1; #X connect 2 2 9 1; #X connect 3 0 4 0; #X connect 5 0 1 0; #X connect 6 0 1 0; #X connect 7 1 3 0; #X connect 8 0 7 0; #X connect 9 0 2 0; #X connect 10 0 7 1;