aboutsummaryrefslogtreecommitdiff
path: root/doc/pddp/change-help.pd
blob: 2a799401738dc2f9d39e4987b1f58c995bcd4295 (plain)
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
#N canvas 33 5 471 644 10;
#X floatatom 23 489 0 0 0;
#X floatatom 23 400 0 0 0;
#X floatatom 61 416 0 0 0;
#X obj 66 15 change;
#X text 114 16 - ELIMINATE REDUNDANCY IN A NUMBER STEAM;
#X msg 61 438 set \$1;
#X text 106 438 set the value;
#X text 60 400 if different from current value \, output and set;
#X obj 23 510 print;
#X msg 16 81 1;
#X msg 44 81 1;
#X msg 73 81 1;
#X msg 106 80 0;
#X text 14 65 Click from left to right...;
#X obj 16 112 change;
#X obj 16 133 print;
#X text 51 133 Watch terminal window.;
#X text 12 42 The change object outputs its input only when it changes.
;
#X text 15 160 [change] will accept a float as a creation argument.
That creation argument will define the inital value.;
#X obj 19 225 change 6.5;
#X obj 19 248 print;
#X msg 19 196 6.5;
#X msg 49 196 5.5;
#X msg 191 285 bang;
#X text 20 318 It's important to note that when [change] receives a
number in its inlet \, that number is outputted (if its different than
the currently stored value) and then stored.;
#X obj 23 467 change;
#X text 19 365 The "set" method can be used to store a number in the
object without outputting that value.;
#X text 22 585 This document was updated for Pd version 0.35 test 26
by Dave Sabine as part of a project called pddp proposed by Krzysztof
Czaja to build comprehensive documentation for Pd.;
#X text 17 269 Sending a "bang" message to the inlet will force [change]
to output its current value.;
#X connect 0 0 8 0;
#X connect 1 0 25 0;
#X connect 2 0 5 0;
#X connect 5 0 25 0;
#X connect 9 0 14 0;
#X connect 10 0 14 0;
#X connect 11 0 14 0;
#X connect 12 0 14 0;
#X connect 14 0 15 0;
#X connect 19 0 20 0;
#X connect 21 0 19 0;
#X connect 22 0 19 0;
#X connect 23 0 19 0;
#X connect 25 0 0 0;