XML Feeds

.

[maxmsp] "anticipated" ends of line~ problem

Karim Barkati karim.barkati at free.fr
Fri Apr 25 05:45:13 MDT 2008


Hello,

I'm looking for a way to detect ends of ramps, for example to stop a  
groove~ object *after* my anti-clic fade-out has finished.
I was sure that a combination line~ -> snapshot~ would do the trick,  
rather elegantly, but I got some surprises depending on the time  
interval of the ramp!
The following patch tries to show how I get "anticipated" ends of line~.
Any explanation and/or solution?

max v2;
#N vpatcher 10 59 444 728;
#P window setfont "Sans Serif" 9.;
#P comment 113 247 152 196617 • Change ramp interval to observe line~  
ending behaviour.;
#P window linecount 1;
#P newex 42 402 40 196617 t f f f;
#P number 42 597 35 9 0 0 0 3 0 0 0 255 156 156 222 222 222 0 0 0;
#P newex 42 576 41 196617 * 100.;
#P message 23 488 33 196617 clear;
#P user incdec 95 246 15 15 0 0;
#P message 270 204 20 196617 46;
#P message 251 204 20 196617 45;
#P message 232 204 20 196617 44;
#P message 152 204 20 196617 23;
#P message 133 204 20 196617 22;
#P message 114 204 20 196617 21;
#P message 211 204 20 196617 34;
#P message 61 204 14 196617 9;
#P message 192 204 20 196617 33;
#P message 173 204 20 196617 32;
#P message 93 204 20 196617 11;
#P message 74 204 20 196617 10;
#P number 61 246 35 9 0 0 0 3 0 0 0 255 227 23 222 222 222 0 0 0;
#P newex 93 514 71 196617 print •erreur;
#P newex 93 490 29 196617 gate;
#P message 61 267 39 196617 set \$1;
#P flonum 102 377 45 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 42 557 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 65 538 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 42 460 136 196617 expr $f1 != 1. && $f1 != 0.;
#P newex 42 514 33 196617 mean;
#P toggle 42 34 15 0;
#P newex 42 113 58 196617 metro 100;
#P user ezdac~ 61 61 105 94 0;
#P newex 72 425 74 196617 print snapshot;
#P newex 42 377 55 196617 snapshot~;
#P toggle 42 137 15 0;
#P newex 42 289 58 196617 append 22.;
#P newex 42 315 44 196617 line~ 0.;
#P window linecount 2;
#P comment 61 177 340 196617 Those time intervals cause an  
"anticipated" end of line~ on my machine (the signal has totaly  
reached its destination \, here 0. or 1.).;
#P window linecount 1;
#P comment 291 206 21 196617 ...;
#P comment 42 620 136 196617 % of end of line~ "errors"...;
#P comment 60 138 178 196617 Simulate 'start' & 'stop' messages.;
#P comment 59 36 100 196617 • Start/stop testing.;
#P window linecount 2;
#P comment 154 373 128 196617 I expected only 0. or 1. \, but no  
intermediate values!;
#P fasten 13 0 36 0 28 79;
#P connect 13 0 12 0;
#P connect 12 0 8 0;
#P connect 8 0 7 0;
#P connect 19 0 7 0;
#P connect 7 0 6 0;
#P connect 6 0 9 0;
#P connect 6 1 9 0;
#P connect 9 0 39 0;
#P connect 39 1 15 0;
#P connect 15 0 14 0;
#P connect 36 0 14 0;
#P connect 14 0 17 0;
#P connect 17 0 37 0;
#P connect 37 0 38 0;
#P connect 13 0 11 0;
#P hidden connect 35 0 22 0;
#P connect 34 0 22 0;
#P connect 33 0 22 0;
#P connect 32 0 22 0;
#P connect 31 0 22 0;
#P connect 30 0 22 0;
#P connect 29 0 22 0;
#P connect 28 0 22 0;
#P connect 27 0 22 0;
#P connect 26 0 22 0;
#P connect 25 0 22 0;
#P connect 24 0 22 0;
#P connect 23 0 22 0;
#P connect 22 0 19 0;
#P connect 14 1 16 0;
#P connect 39 2 10 0;
#P connect 15 0 20 0;
#P connect 20 0 21 0;
#P hidden connect 22 0 35 0;
#P connect 9 0 18 0;
#P connect 39 0 20 1;
#P pop;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20080425/0a03e1fe/attachment.htm


More information about the maxmsp mailing list