#N canvas 499 205 560 360 10;
#X obj 2 228 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 2 261 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 2 300 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 136 270 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 205 173 tgl 18 0 empty empty empty 0 -6 0 8 -216373 -66577 -1
1 1;
#X obj 205 146 cyclone/active;
#X text 261 309 (none);
#X obj 2 333 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#X obj 2 4 cnv 15 553 42 empty empty empty 20 12 0 14 -233017 -66577
0;
#N canvas 0 22 450 278 (subpatch) 0;
#X coords 0 1 100 -1 554 42 1 0 0;
#X restore 2 3 graph;
#X obj 305 4 cnv 15 250 40 empty empty empty 12 13 0 18 -128992 -233080
0;
#N canvas 382 141 749 319 (subpatch) 0;
#X coords 0 -1 1 1 252 42 2 100 100;
#X restore 304 3 pd;
#X text 259 236 (none);
#X text 168 272 float -;
#X text 223 271 window status (0 inactive / 1 active);
#X text 230 175 status;
#N canvas 727 113 433 415 example 0;
#X obj 88 104 cyclone/active;
#X obj 88 166 cyclone/gate;
#X obj 157 134 key;
#X obj 88 188 print key;
#X obj 103 313 select 1 0;
#X msg 103 341 I am now active;
#X msg 212 341 I am now inactive;
#X obj 265 129 cyclone/active;
#X obj 232 154 spigot;
#X obj 222 126 ctlin;
#X obj 232 183 print ctlin;
#X obj 103 283 cyclone/active;
#X text 37 27 This is useful to change the user interface of your window
like filtering out messages from the [key] or [ctlin] object when the
window is inactive. See below.;
#X text 40 231 This subopatch window also prints a message saying if
it is active or not.;
#X obj 103 370 print subpatch;
#X connect 0 0 1 0;
#X connect 1 0 3 0;
#X connect 2 0 1 1;
#X connect 4 0 5 0;
#X connect 4 1 6 0;
#X connect 5 0 14 0;
#X connect 6 0 14 0;
#X connect 7 0 8 1;
#X connect 8 0 10 0;
#X connect 9 0 8 0;
#X connect 11 0 4 0;
#X restore 461 197 pd example;
#X obj 205 203 nbx 3 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-228856 -1 -1 1 256;
#X obj 16 4 cyclone/comment 0 33 DejaVu\ Sans\ Mono empty 0 0 0 0 0
255 255 255 0 0 active;
#X obj 17 56 cyclone/comment 0 14 DejaVu\ Sans\ Mono empty 0 0 0 0
0 255 255 255 0 0 Report window activity;
#X obj 322 28 cyclone/comment 0 13 DejaVu\ Sans\ Mono empty 0 224 228
220 0 255 255 255 0 0 Objects cloned from Max/MSP;
#X obj 363 4 cyclone/comment 0 24 DejaVu\ Sans\ Mono empty 0 224 228
220 0 255 255 255 0 0 cyclone;
#X text 64 87 [active] outputs 1 when a patch canvas becomes active
(its title bar is highlighted and it's the front-most window) \, and
outputs 0 when inactive. See examples below.;
#X connect 4 0 17 0;
#X connect 5 0 4 0;
