1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
#N canvas 507 81 557 534 10;
#X obj 0 0 cnv 15 552 40 empty empty divmod 3 12 0 18 -204280 -1 0
;
#X obj 0 278 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#X obj 0 354 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 412 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#X obj 79 363 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 79 289 cnv 17 3 30 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 0 495 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 497 pd Related_objects;
#N canvas 511 576 379 261 META 0;
#X text 12 196 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 nonlocal;
#X text 12 75 INLET_0 bang float;
#X text 12 95 INLET_1 float;
#X text 12 115 OUTLET_0 float;
#X text 12 45 DESCRIPTION calculate division and modulo outputs results
even when right inlet changes;
#X text 12 135 OUTLET_1 float;
#X text 12 155 AUTHOR Olaf Matthes;
#X text 12 175 MAINTAINER Fred Jan Kraan <fjkraan@xs4all.nl>;
#X restore 502 499 pd META;
#X obj 0 445 cnv 3 550 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#X obj 513 4 allow;
#X text 107 363 float;
#X obj 79 327 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X text 107 327 float;
#X text 8 23 calculate division and modulo outputs results;
#X obj 79 389 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X text 107 389 float;
#X text 162 389 - modulo of divident % divisor;
#X text 162 363 - division of divident / divisor;
#X text 96 454 outputs results even when right inlet changes;
#X text 96 470 ignores 0 at right inlet;
#X text 96 421 arg 1: divident \, arg 2: divisor;
#X floatatom 94 241 5 0 0 0 - - -, f 5;
#X floatatom 94 92 5 0 0 0 - - -, f 5;
#X floatatom 193 92 5 0 0 0 - - -, f 5;
#X msg 63 71 bang;
#X floatatom 193 241 5 0 0 0 - - -, f 5;
#X text 107 307 float;
#X text 162 307 - divident \, converted to integer;
#X text 107 289 bang;
#X text 162 289 - recalculate with last inlet values;
#X text 162 327 - divisor \, converted to integer;
#X obj 94 160 maxlib/divmod 8 6;
#X connect 23 0 32 0;
#X connect 24 0 32 1;
#X connect 25 0 32 0;
#X connect 32 0 22 0;
#X connect 32 1 26 0;
|