Update of /cvsroot/pure-data/externals/mapping In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18182
Modified Files: vector.pd TODO Added Files: radians0x2d0x3emapping.pd mapping0x2d0x3edegrees.pd mapping0x2d0x3eradians.pd degrees0x2d0x3emapping.pd Log Message: renamed '2' objects to '->' objects using hex altnames
--- NEW FILE: radians0x2d0x3emapping.pd --- #N canvas 258 110 429 400 10; #X obj 42 36 inlet; #X obj 140 297 outlet; #X text 19 9 [rad2hid]; #X obj 141 234 % 628318; #X obj 127 167 moses 0; #X obj 141 255 / 628318; #X obj 42 96 * 100000; #X obj 41 167 % 628318; #X obj 42 136 moses -314159; #X obj 85 200 + 628318; #X text 10 66 % is an int operation , we want floats , so convert to large integers; #X text 225 351 released under the GNU GPL; #X text 8 337 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X connect 0 0 6 0; #X connect 3 0 5 0; #X connect 4 0 9 0; #X connect 4 1 3 0; #X connect 5 0 1 0; #X connect 6 0 8 0; #X connect 7 0 9 0; #X connect 8 0 7 0; #X connect 8 1 4 0; #X connect 9 0 3 0;
Index: vector.pd =================================================================== RCS file: /cvsroot/pure-data/externals/mapping/vector.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** vector.pd 29 Jan 2006 05:43:33 -0000 1.1 --- vector.pd 4 Jun 2006 15:27:08 -0000 1.2 *************** *** 1,3 **** ! #N canvas 711 171 488 431 10; #X obj 30 75 inlet; #X obj 25 300 outlet; --- 1,4 ---- ! #N canvas 711 171 496 439 10; ! #X obj 349 16 import mapping; #X obj 30 75 inlet; #X obj 25 300 outlet; *************** *** 18,31 **** #X text 23 318 magnatude; #X obj 153 197 zexy/cart2pol; - #X obj 231 267 radians2mapping; #X obj 29 159 float; #X obj 76 127 trigger bang float; ! #X connect 0 0 18 0; ! #X connect 4 0 19 0; ! #X connect 7 0 1 0; ! #X connect 16 0 7 0; ! #X connect 16 1 17 0; ! #X connect 17 0 3 0; ! #X connect 18 0 16 0; #X connect 19 0 18 0; ! #X connect 19 1 16 1; --- 19,32 ---- #X text 23 318 magnatude; #X obj 153 197 zexy/cart2pol; #X obj 29 159 float; #X obj 76 127 trigger bang float; ! #X obj 233 267 radians->mapping; ! #X connect 1 0 18 0; ! #X connect 5 0 19 0; ! #X connect 8 0 2 0; ! #X connect 17 0 8 0; ! #X connect 17 1 20 0; ! #X connect 18 0 17 0; #X connect 19 0 18 0; ! #X connect 19 1 17 1; ! #X connect 20 0 4 0;
--- NEW FILE: mapping0x2d0x3edegrees.pd --- #N canvas 163 40 448 360 10; #X obj 88 30 inlet; #X obj 89 264 outlet; #X obj 88 56 min 1; #X obj 88 74 max 0; #X text 133 63 its a [hid] object , so limit input range; #X text 232 311 released under the GNU GPL; #X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 129 28 input range: 0 to 1 , 0 = east/right; #X text 143 264 output range: 0 to 360 , 0 = north/top; #X obj 88 100 * 360; #X text 162 189 % is an int operation; #X text 169 207 this saves accuracy; #X obj 88 148 abs; #X obj 88 123 - 450; #X text 131 122 <- rotate zero to north; #X text 130 148 <- change direction of rotation; #X obj 89 202 % 3.6e+07; #X obj 89 223 / 100000; #X obj 89 181 * 100000; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 9 0; #X connect 9 0 13 0; #X connect 12 0 18 0; #X connect 13 0 12 0; #X connect 16 0 17 0; #X connect 17 0 1 0; #X connect 18 0 16 0;
--- NEW FILE: degrees0x2d0x3emapping.pd --- #N canvas 380 212 444 356 10; #X obj 88 30 inlet; #X obj 89 264 outlet; #X text 232 311 released under the GNU GPL; #X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 143 264 output range: 0 to 360 , 0 = north/top; #X text 19 9 [deg2hid]; #X text 129 28 input range: 0 to 360 , 0 = east/right; #X obj 88 170 / 360; #X text 162 108 % is an int operation; #X text 169 126 this saves accuracy; #X obj 89 121 % 3.6e+07; #X obj 89 142 / 100000; #X obj 89 100 * 100000; #X obj 45 210 moses 0; #X obj 45 230 + 1; #X connect 0 0 12 0; #X connect 7 0 13 0; #X connect 10 0 11 0; #X connect 11 0 7 0; #X connect 12 0 10 0; #X connect 13 0 14 0; #X connect 13 1 1 0; #X connect 14 0 1 0;
--- NEW FILE: mapping0x2d0x3eradians.pd --- #N canvas 287 246 474 345 10; #X obj 15 30 inlet; #X obj 16 264 outlet; #X obj 16 198 * 6.28318; #X obj 15 101 moses 0.5; #X obj 15 56 min 1; #X obj 15 74 max 0; #X obj 74 133 - 1; #X text 56 28 input range: 0 to 1; #X text 70 264 output range: -pi to pi; #X text 232 311 released under the GNU GPL; #X text 15 297 (C) Copyright 2005 Hans-Christoph Steiner hans@at.or.at ; #X text 60 63 this should be converted so it can handle out of range values , using a mod and a div prolly.; #X connect 0 0 4 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 3 1 6 0; #X connect 4 0 5 0; #X connect 5 0 3 0; #X connect 6 0 2 0;
Index: TODO =================================================================== RCS file: /cvsroot/pure-data/externals/mapping/TODO,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TODO 6 Apr 2006 23:01:46 -0000 1.1 --- TODO 4 Jun 2006 15:27:08 -0000 1.2 *************** *** 14,15 **** --- 14,68 ----
- merge ds_ list objects with abstractions/footils/list-abs + + + - http://www.fredrikolofsson.com/pages/code-pd.html + check out f0.smooth and f0.smooth2 (single/double exponential smoothing) + + + -track down Golan Levin's curve algorithm page + + ______________________________________________________________________________ + = figure out whole degree issue + + - should degree conversion also change rotation direction and 0 point? The + degrees on a compass rotate the opposite direction of radians. The 0 point + of a compass is due north, with radians, its right/due east. + + - [hid_polar] should take an argument (in degrees?) which specifies where the + 0 is on the circle + + + ========= + smoothing algorithms + + + http://www.chem.uoa.gr/applets/AppletSmooth/Appl_Smooth2.html + + + http://www.nist.gov/dads/ + + + ______________________________________________________________________________ + = mapping object ideas + + [hid2midi] [midi2hid] + + midi value + bend <-> hid + - use MIDI pitch and bend data for values in between MIDI notes? + + object for Fletcher-Munson Equal-loudness contours + + median average object + + [infinitepot] for use with a [knob] or any single axis that could be infinite. + + [hid_debounce] + + peak finder object + + "kalman filters" + + Curves!! + + http://www.2dcurves.com +