[maxmsp] Cursor peak
Yves Bernard
yb at imal.org
Sun Jan 13 04:29:36 MST 2008
- Previous message: [maxmsp] Cursor peak
- Next message: [maxmsp] Precise Rhythm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Cedric, just filter these transient peaks with a low pass filter which will cut all high frequencies typical of this short peaks; for instance, use the slide object. best, >Hi all > >This patch do a horizontal tracking with the colors : Red, Green & Blue. >I use some Leds >This patch is used to scan the presence of leds or the absence of these leds. >As the cursor of the screen is over 20 px, the presence of the leds is valid. > >The problem is that, by time, the cursors go >down during a fraction of second to the pixel "0" >Have you got any advice to stop these very short >peaks when the pixel is at number "0". it's >exactely the moment when the orientation of the >led is not perfectly in front of the camera. > >Thank's for jour help. >Cédric > >max v2; >#N vpatcher 105 25 1130 711; >#P origin 0 -135; >#P window setfont "Sans Serif" 9.; >#P newex 34 45 39 9109513 metro 2; >#P toggle 34 24 15 0; >#P comment 23 655 15 9109513 R; >#P comment 79 656 14 9109513 V; >#P comment 142 656 14 9109513 B; >#P toggle 157 655 15 0; >#P toggle 40 655 15 0; >#P toggle 96 655 15 0; >#P newex 142 602 27 9109513 i; >#P newex 137 625 40 9109513 change; >#P newex 101 602 27 9109513 i; >#P newex 96 625 40 9109513 change; >#P newex 60 602 27 9109513 i; >#P newex 55 625 40 9109513 change; >#P comment 32 567 15 9109513 R; >#P comment 88 568 14 9109513 V; >#P comment 151 568 14 9109513 B; >#P toggle 166 567 15 0; >#P toggle 49 567 15 0; >#P toggle 105 567 15 0; >#P newex 165 541 27 9109513 > 20; >#P newex 106 541 27 9109513 > 20; >#P newex 49 541 27 9109513 > 20; >#P user jit.pwindow 22 237 322 242 0 1 0 0 1 0; >#P window setfont "Sans Serif" 10.; >#P comment 65 394 21 9109514 top; >#P window setfont "Fixedwidth Serif" 10.; >#P number 144 384 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 64 376 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P user hslider 24 480 13 305 320 1 0 0; >#P window setfont "Sans Serif" 10.; >#P comment 107 396 27 9109514 right; >#P window setfont "Fixedwidth Serif" 10.; >#P newex 184 436 140 9240586 expr $i1+(($i2-$i1)/2); >#P number 102 381 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 19 376 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P newex 115 351 48 9240586 unpack; >#P newex 22 352 48 9240586 unpack; >#P newex 56 144 331 9240586 jit.findbounds @min >0. 0.75 0.1 0.1 @max 1. 1. 0.5 0.5; >#B color 5; >#P window setfont "Sans Serif" 10.; >#P comment 27 388 20 9109514 left; >#P comment 230 389 21 9109514 top; >#P window setfont "Fixedwidth Serif" 10.; >#P number 301 371 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 226 372 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P user hslider 23 498 13 305 320 1 0 0; >#P window setfont "Sans Serif" 10.; >#P comment 268 386 27 9109514 right; >#P window setfont "Fixedwidth Serif" 10.; >#P newex 22 313 140 9240586 expr $i1+(($i2-$i1)/2); >#P number 263 371 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 187 371 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P newex 263 350 48 9240586 unpack; >#P newex 187 350 48 9240586 unpack; >#P newex 45 169 331 9240586 jit.findbounds @min >0. 0.1 0.75 0.1 @max 1. 0.5 1. 0.5; >#B color 5; >#P window setfont "Sans Serif" 10.; >#P comment 192 386 20 9109514 left; >#P window setfont "Sans Serif" 9.; >#P user ubumenu 118 93 145 9109513 0 1 1 0; >#X add "Logitech QuickCam Pro 4000-WDM"; >#X add "Philips SPC 700NC PC Camera-WDM"; >#X add "Sony Visual Communication Camera VGP-VCC1-WDM"; >#X add TGE-WDM; >#X prefix_set 0 0 <none> 0; >#X pattrmode 1; >#P newex 34 92 82 9109513 jit.qt.grab 320 240; >#B color 5; >#P window setfont "Sans Serif" 10.; >#P comment 158 289 21 9109514 top; >#P window setfont "Fixedwidth Serif" 10.; >#P number 229 271 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 154 272 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P window setfont "Sans Serif" 9.; >#P newex 119 91 25 9109513 iter; >#P newex 145 92 38 9109513 t clear; >#P message 119 92 58 9109513 vdevice \$1; >#P newex 121 92 75 9109513 prepend append; >#P newex 119 92 112 9109513 route vdevlist inputlist; >#P message 55 68 28 9109513 open; >#B color 9; >#P message 84 68 31 9109513 close; >#B color 9; >#P message 120 67 59 9109513 getvdevlist; >#P user hslider 24 517 13 305 320 1 0 0; >#P window setfont "Sans Serif" 10.; >#P comment 196 286 27 9109514 right; >#P window setfont "Fixedwidth Serif" 10.; >#P newex 106 308 140 9240586 expr $i1+(($i2-$i1)/2); >#P number 191 271 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P number 115 271 35 10 0 0 0 141 0 0 0 221 221 221 222 222 222 0 0 0; >#P newex 191 250 48 9240586 unpack; >#P newex 115 250 48 9240586 unpack; >#P newex 33 194 331 9240586 jit.findbounds @min >0. 0.1 0.1 0.75 @max 1. 0.5 0.5 1.; >#B color 5; >#P window setfont "Sans Serif" 10.; >#P comment 120 286 20 9109514 left; >#P window setfont "Sans Serif" 9.; >#P comment 4 479 15 9109513 R; >#P comment 4 498 14 9109513 V; >#P comment 4 516 14 9109513 B; >#P connect 39 0 41 0; >#P connect 29 0 31 0; >#P fasten 38 0 39 0 61 232 27 232; >#P fasten 23 0 49 0 39 117 28 117; >#P fasten 31 0 33 0 27 479 28 479; >#P fasten 43 0 45 0 189 472 29 472; >#P fasten 9 0 11 0 111 445 29 445; >#P fasten 23 0 4 0 39 182 38 182; >#P connect 71 0 72 0; >#P connect 72 0 23 0; >#P connect 17 0 23 0; >#P connect 14 0 23 0; >#P connect 13 0 23 0; >#P connect 12 0 23 0; >#P connect 59 0 66 0; >#P fasten 23 0 26 0 39 162 50 162; >#P fasten 45 0 50 0 29 535 54 535; >#P connect 50 0 54 0; >#P connect 60 0 59 0; >#P fasten 23 0 38 0 39 137 61 137; >#P fasten 54 0 60 0 54 593 65 593; >#P connect 39 1 46 0; >#P fasten 54 0 60 1 54 593 82 593; >#P connect 62 0 61 0; >#P connect 61 0 65 0; >#P fasten 53 0 62 0 110 593 106 593; >#P connect 40 0 42 0; >#P connect 51 0 53 0; >#P connect 7 0 9 0; >#P fasten 33 0 51 0 28 532 111 532; >#P fasten 4 0 5 0 38 231 120 231; >#P connect 5 0 7 0; >#P fasten 38 1 40 0 221 444 120 444; >#P connect 18 0 24 0; >#P connect 16 0 24 0; >#P fasten 53 0 62 1 110 593 123 593; >#P connect 15 0 19 0; >#P connect 24 0 17 0; >#P connect 23 1 15 0; >#P connect 19 0 16 0; >#P connect 64 0 63 0; >#P fasten 55 0 64 0 171 593 147 593; >#P connect 40 1 47 0; >#P connect 15 0 18 0; >#P fasten 30 0 31 1 268 405 157 405; >#P connect 5 1 20 0; >#P connect 63 0 67 0; >#P fasten 55 0 64 1 171 593 164 593; >#P fasten 11 0 52 0 29 535 170 535; >#P connect 52 0 55 0; >#P connect 41 0 43 0; >#P fasten 26 0 27 0 50 228 192 228; >#P connect 27 0 29 0; >#P fasten 4 1 6 0 198 231 196 231; >#P connect 6 0 8 0; >#P connect 27 1 34 0; >#P connect 6 1 21 0; >#P fasten 8 0 9 1 196 297 241 297; >#P fasten 26 1 28 0 210 230 268 230; >#P connect 28 0 30 0; >#P connect 28 1 35 0; >#P fasten 42 0 43 1 107 415 319 415; >#P pop; > > > >Les partager, au lieu de les laisser au fin fond >d'un fichier... ><http://get.live.com>Qu'allez-vous faire de vos >photos ? ****** Clause d'exonération de >responsabilité : >http://www.cfwb.be/index.php?id=disclaimer ****** > >_______________________________________________ >maxmsp mailing list >maxmsp at cycling74.com >http://www.cycling74.com/mailman/listinfo/maxmsp > > >****** >Clause d'exon?ration de responsabilit? : >http://www.cfwb.be/index.php?id=disclaimer >****** -- Yves Bernard yb at imal.org asbl iMAL vzw Center for Digital Cultures and Technology 30-34 Quai des Charbonnages 1080 Bruxelles/Brussel tel 32 2 410 30 93 http://www.imal.org http://www.erg.be/blogs/artNumeur http://www.i-cult.be -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20080113/57be8fd4/attachment.htm
- Previous message: [maxmsp] Cursor peak
- Next message: [maxmsp] Precise Rhythm
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
