#N canvas 57 56 655 464 10;
#X obj 55 102 abs_4to16pads_bin_conv_sv;
#X obj 56 22 polytouchin;
#X floatatom 55 59 0 0 0 0 - - -;
#X floatatom 99 59 0 0 0 0 - - -;
#X floatatom 140 59 0 0 0 0 - - -;
#X floatatom 55 178 5 0 0 0 - - -;
#X obj 203 63 bng 15 250 50 0 empty empty OutputDecimal -20 -9 0 10
-262144 -1 -1;
#X text 274 393 I DO believe a metro or until version \; of this is
also possible but the shell was more expedient. \; -svanya;
#X text 274 178 4pad/trigger to 16 pad/trigger binary-to-decimal converter
\; the patch converts the pressing of multiple pads \; to a binary
number then to a decimal so that \; for ex. a 4 pad control can send
signals from 1-15.;
#X text 274 85 The left inlet takes a routing/control value \, \; ex.
note/polytouch control \, etc. \; the middle inlet takes the value
from that control \; and the right inlet takes a bang to trigger/get/output
\; the decimal equivalent.;
#X text 274 332 FYI: in the polytouch instance \, the control is looking
for \; 127 as a trigger value \, so the pads must be pushed Completely
down.;
#X text 275 16 Purpose: convert binary values to decimals in order
to simplify and expand the rerouting from one control to another \,
ex. from POLTYTOUCH to PROG.;
#X text 277 257 the "shell" external is required \; and the shell script
\, named:bin2dec_pd \, is \; also required. It includes only a single
line (quotes included \, but NOT (in the shell script!) \, the slash)
\, echo "$((2#\$1))".;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 1 1 3 0;
#X connect 1 2 4 0;
#X connect 2 0 0 1;
#X connect 3 0 0 0;
#X connect 6 0 0 2;
#X coords 0 -1 1 1 164 54 1 50 100;
