#N canvas 414 421 753 513 12;
#X obj 6 9 inlet;
#X obj 533 161 tabwrite~ \$0-array;
#X msg 533 285 \; pd dsp 1;
#X obj 534 188 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 534 208 switch~ 512 1 1;
#X obj 533 236 array define \$0-array 512;
#X obj 534 78 inlet~;
#X obj 533 261 loadbang;
#X obj 6 34 t b b;
#X obj 6 477 outlet;
#X obj 38 59 ofelia define \$0-osc \; local c = ofCanvas(this) \; local
args = c:getArgs() \; local xPos \, yPos \, width \, height = args[1]
\, args[2] \, args[3] \, args[4] \; local arr = ofArray("\$0-array")
\; \; function M.bang() \; ofPushMatrix() \; ofPushStyle() \; ofSetRectMode(OF_RECTMODE_CORNER)
\; ofSetColor(255) \; ofDrawRectangle(xPos \, yPos \, width \, height)
\; ofSetLineWidth(2) \; ofSetColor(100 \, 200 \, 255) \; local x \,
y = xPos \, -yPos / 1 \; local w \, h= width / arr:getSize() \, height
/ 2 \; for i=1 \, arr:getSize() - 1 do \; ofDrawLine(x \, height /
2 - (y + arr[i] * h) \, x + w \, height / 2 - (y + arr[i + 1] * h))
\; x = x + w \; end \; ofNoFill() \; ofSetColor(0) \; ofDrawRectangle(xPos
\, yPos \, width \, height) \; ofPopStyle() \; ofPopMatrix() \; end
\;;
#X f 66;
#X obj 654 56 metro 20;
#X obj 667 21 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X connect 0 0 8 0;
#X connect 3 0 4 0;
#X connect 6 0 1 0;
#X connect 7 0 2 0;
#X connect 8 0 9 0;
#X connect 8 1 10 0;
#X connect 11 0 1 0;
#X connect 12 0 11 0;
