#N canvas 0 31 653 285 10; #X floatatom 29 62 5 0 0 3 in-1 #0-sim-1-in-1 -; #X floatatom 95 63 5 0 0 3 in-2 #0-sim-1-in-2 -; #X floatatom 144 99 5 0 0 3 window #0-sim-1-win -; #N canvas 0 0 450 300 init 0; #X msg 33 31 50; #X msg 85 31 3; #X obj 33 82 s \$0-sim-1-in-1; #X obj 59 65 s \$0-sim-1-in-2; #X obj 85 48 s \$0-sim-1-win; #X obj 33 14 loadbang; #X msg 59 31 53; #X connect 0 0 2 0; #X connect 1 0 4 0; #X connect 5 0 1 0; #X connect 5 0 6 0; #X connect 5 0 0 0; #X connect 6 0 3 0; #X restore 205 159 pd init; #X obj 46 153 simile; #X floatatom 17 215 5 0 0 3 similarity - -; #X floatatom 117 205 5 0 0 3 sign - -; #X text 261 35 simile may be used to compare two numbers according to an error window. If the two numbers are identical then the output is a 1 If thetwo numbers differ by the value of the error window then the output is 0.5. The second outlet is the sign \, so that if i1 >= i2 it is a 1 and if i1 < i2 it is a -1; #X text 262 114 useful for comparing pitches \, durations etc.; #N canvas 415 266 494 265 META 0; #X text 12 185 HELP_PATCH_AUTHORS Ed Kelly. Revised by Jonathan Wilkes for Pd-extended 0.42 to conform to the PDDP template.; #X text 12 25 LICENSE GPL v3; #X text 12 165 AUTHOR Ed Kelly ; #X text 12 5 KEYWORDS control; #X text 12 45 DESCRIPTION compare two numbers according to an error window; #X text 12 65 INLET_0 float; #X text 12 85 INLET_1 float; #X text 12 105 INLET_2 float; #X text 12 125 OUTLET_0 float; #X text 12 145 OUTLET_1 float; #X restore 597 257 pd META; #X connect 0 0 4 0; #X connect 1 0 4 1; #X connect 2 0 4 2; #X connect 4 0 5 0; #X connect 4 1 6 0;