Hello,
Is there a simple way to examine incoming numbers and select a particular sequence? That is, send a bang when it occurs?
In my case the source of numbers is from a sysexin object.
I'd like to send a bang message when the sequence "240 127 0 6 3 247" occurs, for example
Thanks,
Iain
sorry - figured out a way:
#N canvas 384 156 648 659 10; #X obj 291 131 t l; #X msg 188 83 10; #X msg 250 94 20; #X msg 290 94 30; #X obj 219 153 list prepend; #X obj 135 238 list append; #X obj 134 200 bng 15 250 50 0 empty empty done 0 -6 0 8 -262144 -1 -1; #X obj 339 132 bng 15 250 50 0 empty empty clear 0 -6 0 8 -262144 -1 -1; #X floatatom 136 328 5 0 0 0 - - -; #X floatatom 182 328 5 0 0 0 - - -; #X floatatom 226 328 5 0 0 0 - - -; #X obj 142 -13 inlet; #X floatatom 238 -12 5 0 0 0 - - -; #X obj 102 81 t b b; #X obj 135 279 unpack f f f f f f f f; #X floatatom 271 329 5 0 0 0 - - -; #X floatatom 317 329 5 0 0 0 - - -; #X floatatom 361 329 5 0 0 0 - - -; #X obj 213 39 t b b; #X obj -75 267 strcmp 240 127 0 6 3 247; #X obj -74 356 sel 0; #X obj 212 17 sel 240; #X msg 223 71 240; #X msg 123 107 247; #X obj 120 57 sel 247; #X obj 88 466 outlet; #X obj -63 332 strcmp $1 $2 $3 $4 $5 $6; #X obj -64 420 print start; #X connect 0 0 4 1; #X connect 1 0 4 0; #X connect 2 0 4 0; #X connect 3 0 4 0; #X connect 4 0 0 0; #X connect 4 0 5 1; #X connect 5 0 14 0; #X connect 5 0 19 0; #X connect 6 0 5 0; #X connect 7 0 4 1; #X connect 11 0 21 0; #X connect 12 0 21 0; #X connect 13 0 6 0; #X connect 13 1 23 0; #X connect 14 0 8 0; #X connect 14 1 9 0; #X connect 14 2 10 0; #X connect 14 3 15 0; #X connect 14 4 16 0; #X connect 14 5 17 0; #X connect 18 0 22 0; #X connect 18 1 7 0; #X connect 19 0 20 0; #X connect 20 0 25 0; #X connect 20 0 27 0; #X connect 21 0 18 0; #X connect 21 1 24 0; #X connect 22 0 4 0; #X connect 23 0 4 0; #X connect 24 0 13 0; #X connect 24 1 4 0; #X connect 26 0 20 0;