#N canvas 455 81 557 534 10;
#X obj 0 0 cnv 15 552 40 empty empty delta 3 12 0 18 -204280 -1 0;
#X obj 0 353 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 0 420 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 467 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 79 435 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 0 497 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#N canvas 242 347 428 75 Related_objects 0;
#X obj 0 0 cnv 15 425 20 empty empty empty 3 12 0 14 -204280 -1 0;
#X text 6 1 Related Objects;
#X restore 206 499 pd Related_objects;
#N canvas 697 413 379 261 META 0;
#X text 13 149 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42. Updated by Fred Jan Kraan 2016-02.;
#X text 12 25 LICENSE GPL v2;
#X text 12 5 KEYWORDS control analysis;
#X text 12 106 AUTHOR Olaf Matthes;
#X text 12 45 DESCRIPTION calculate 1st or 2nd order difference;
#X text 12 66 INLET_0 bang float;
#X text 12 86 OUTLET_0 float;
#X text 12 127 MAINTAINER Fred Jan Kraan <fjkraan@xs4all.nl>;
#X restore 502 501 pd META;
#X text 107 435 float;
#X obj 79 367 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X text 20 21 calculate 1st or 2nd order difference;
#X floatatom 81 292 5 0 0 0 - - -, f 5;
#X floatatom 81 85 5 0 0 0 - - -, f 5;
#X msg 123 86 bang;
#X obj 81 110 * 3;
#X floatatom 170 293 5 0 0 0 - - -, f 5;
#X floatatom 170 86 5 0 0 0 - - -, f 5;
#X obj 170 111 * 3;
#X obj 170 207 maxlib/delta 2;
#X obj 81 206 maxlib/delta;
#X text 96 476 order difference (1st or 2nd);
#X text 107 367 bang;
#X msg 222 87 clear;
#X text 107 402 float;
#X text 107 385 clear;
#X text 162 367 - calculate and output result now;
#X text 162 402 - input value;
#X text 162 385 - set previous value to 0;
#N canvas 592 470 450 300 counter 0;
#X obj 106 61 metro 100;
#X obj 106 28 inlet;
#X obj 154 28 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 106 115 f 0;
#X obj 133 115 + 1;
#X obj 195 28 inlet;
#X obj 195 60 select 0 1;
#X msg 195 82 -1;
#X msg 226 82 1;
#X floatatom 106 163 5 0 0 0 - - -, f 5;
#X obj 238 30 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 106 197 outlet;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 0 9 0;
#X connect 4 0 3 1;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 6 1 8 0;
#X connect 7 0 4 1;
#X connect 8 0 4 1;
#X connect 9 0 11 0;
#X connect 10 0 6 0;
#X restore 376 104 pd counter;
#X obj 376 82 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 433 82 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 418 66 down/up;
#X text 363 67 off/on;
#X obj 323 134 * 1;
#X msg 375 133 1;
#X msg 375 152 2;
#X msg 375 171 3;
#X obj 513 4 delta;
#X text 162 435 - delta value;
#X connect 12 0 14 0;
#X connect 13 0 19 0;
#X connect 13 0 18 0;
#X connect 14 0 19 0;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 15 0;
#X connect 19 0 11 0;
#X connect 22 0 18 0;
#X connect 22 0 19 0;
#X connect 28 0 33 0;
#X connect 29 0 28 0;
#X connect 30 0 28 1;
#X connect 33 0 18 0;
#X connect 33 0 19 0;
#X connect 34 0 33 1;
#X connect 35 0 33 1;
#X connect 36 0 33 1;
