File: deltas-help.pd

package info (click to toggle)
pd-smlib 0.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 844 kB
  • sloc: ansic: 3,010; makefile: 63
file content (129 lines) | stat: -rw-r--r-- 3,951 bytes parent folder | download
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#N canvas 461 79 558 505 10;
#X obj -1 562 cnv 15 552 21 empty empty empty 20 12 0 14 -233017 -33289
0;
#X obj 1 261 cnv 3 550 3 empty empty inlets 8 12 0 13 -228856 -1 0
;
#N canvas 736 345 424 317 META 0;
#X text 12 175 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 155 AUTHOR Johannes Taelman (johannes.taelman@rug.ac.be)
;
#X text 12 75 INLET_0 float factor clear;
#X text 12 45 DESCRIPTION generate vector with differences between
last input and past inputs;
#X text 12 115 INLET_2 float;
#X text 12 95 INLET_1 float;
#X text 12 135 OUTLET_0 list;
#X text 12 5 KEYWORDS control list_op;
#X restore 499 564 pd META;
#X obj 0 396 cnv 3 550 3 empty empty outlets 8 12 0 13 -228856 -1 0
;
#X obj 0 433 cnv 3 550 3 empty empty arguments 8 12 0 13 -228856 -1
0;
#N canvas 130 487 428 85 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 195 565 pd Related_objects;
#X obj 0 0 cnv 15 552 40 empty empty deltas 3 12 0 18 -204280 -1 0
;
#X obj 79 405 cnv 17 3 17 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 79 271 cnv 17 3 70 empty empty 0 5 9 0 16 -228856 -162280 0
;
#X obj 84 71 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X text 99 308 float;
#X obj 84 49 loadbang;
#X obj 84 90 metro 500;
#X text 174 309 - input float stream;
#X floatatom 196 102 5 0 0 0 - - -, f 5;
#X obj 196 237 print deltas;
#X floatatom 254 123 5 0 0 0 - - -, f 5;
#X floatatom 313 123 5 0 0 0 - - -, f 5;
#X text 313 102 b;
#X text 252 103 a;
#X msg 141 116 clear;
#N canvas 635 477 450 300 counter 0;
#X obj 91 26 inlet;
#X obj 91 68 f;
#X obj 127 68 + 1;
#X msg 163 34 0;
#X obj 91 218 outlet;
#X floatatom 104 103 5 0 0 0 - - -, f 5;
#X obj 91 140 t f f;
#X obj 118 176 moses 10;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 1 0 5 0;
#X connect 1 0 6 0;
#X connect 2 0 1 1;
#X connect 3 0 1 0;
#X connect 6 0 4 0;
#X connect 6 1 7 0;
#X connect 7 1 3 0;
#X restore 196 54 pd counter;
#X text 11 21 generates vector with differences between last input
and past inputs, f 71;
#X obj 492 6 deltas;
#X text 99 288 clear;
#X text 99 270 bang;
#X obj 79 351 cnv 17 3 17 empty empty 1 5 9 0 16 -228856 -162280 0
;
#X obj 79 374 cnv 17 3 17 empty empty 2 5 9 0 16 -228856 -162280 0
;
#X text 99 350 float;
#X text 99 371 float;
#X text 173 351 - lower bound of previous values (0 is current value)
;
#X text 174 372 - upper bound of previous values;
#X obj 196 200 smlib/deltas 1 10 10;
#X obj 196 122 t b f;
#X text 174 454 - set initial lower bound;
#X text 174 472 - set initial upper bound;
#X text 174 490 - set initial buffer size;
#X text 174 328 - set values for lower \, and upper bound and buffer
size;
#X text 99 327 set l u b;
#N canvas 632 527 450 300 valueGenerator 0;
#X obj 128 66 inlet;
#X obj 162 129 *;
#X obj 113 170 - 0;
#X floatatom 132 213 5 0 0 0 - - -, f 5;
#X obj 113 238 outlet;
#X obj 128 96 t f f f f;
#X obj 128 129 +;
#X connect 0 0 5 0;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 4 0;
#X connect 5 0 6 0;
#X connect 5 1 6 1;
#X connect 5 2 1 0;
#X connect 5 3 1 1;
#X connect 6 0 2 1;
#X restore 196 78 pd valueGenerator;
#X text 99 407 list;
#X text 174 407 - deltas between lower and upper boundary;
#X obj 0 511 cnv 3 550 3 empty empty more_info 8 12 0 13 -228856 -1
0;
#X text 82 454 a) float;
#X text 82 472 b) float;
#X text 82 490 c) float;
#X text 81 531 The lower boundary (a) should be smaller than the upper
boundary (b) \, which should be equal or smaller than the buffer size
(c), f 65;
#X text 174 290 - clear the buffer values;
#X text 174 271 - calculates the set of deltas;
#X connect 9 0 12 0;
#X connect 11 0 9 0;
#X connect 12 0 21 0;
#X connect 14 0 33 0;
#X connect 16 0 32 1;
#X connect 17 0 32 2;
#X connect 20 0 32 0;
#X connect 21 0 39 0;
#X connect 32 0 15 0;
#X connect 33 0 32 0;
#X connect 33 1 32 0;
#X connect 39 0 14 0;