XML Feeds

.

[maxmsp] Alternating between images with select

Adam spondoo at hotmail.com
Wed Apr 2 04:01:50 MDT 2008


In the patch below, I have one image being displayed when the patch is loaded, but when a bang is sent from the receive object, 
a second image takes its place for a couple of milliseconds and then disappears. E.g. the image is white when the patch is loaded and each time a bang is received the picture flashes red and then returns back to white.

However, occasionally if an odd number off bangs are received, the image gets stuck on red and therefore works in the reverse  order, flashing white when a bang is received. Is there a way to ensure that the image will only ever flash red without getting stuck? 

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 399 177 49 196617 delay 90;
#P button 343 101 15 0;
#P toggle 371 199 15 0;
#P newex 329 28 30 196617 r hit;
#P message 338 355 56 196617 read 2.jpg;
#P message 348 313 56 196617 read 1.jpg;
#P newex 377 280 41 196617 sel 0 1;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 5 0 6 0;
#P connect 4 0 0 0;
#P connect 6 0 4 0;
#P fasten 0 1 1 0 397 264 353 264;
#P fasten 0 0 2 0 382 269 343 269;
#P window clipboard copycount 7;





More information about the maxmsp mailing list