aboutsummaryrefslogtreecommitdiff
path: root/examples/step~.pd
blob: 8b85d3d99e1ef289f844d71d083cac375f6030a1 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#N canvas 179 22 564 331 8;
#X obj 243 283 step~;
#X obj 243 309 print~;
#X msg 186 236 bang;
#X floatatom 283 259;
#X floatatom 243 237;
#X obj 186 259 t b b;
#X obj 243 259 t f b;
#X text 50 20 step~ ::;
#X text 50 70 IN1 :;
#X text 50 110 IN2 :;
#X text 50 180 note :;
#X text 100 20 produces a unit:step:sequence or a rectangle:window;
#X text 100 70 define \, how many samples after the float::bang:message the rectangle:window will start;
#X text 100 110 define the length of the rectangle:window choosing 1 will produce a dirac:impulse :: unit:sample:sequence) choosing 0 will make the rectangle infinitely long :: unit:step:sequence;
#X text 100 180 1 sample equals 1:over:samplerate secs;
#X text 235 217 position;
#X text 303 239 length;
#N canvas 169 79 597 397 application 0;
#X obj 88 188 sig~ 440;
#X obj 88 211 osc~;
#X obj 88 235 *~;
#X obj 149 211 osc~;
#X obj 149 235 *~;
#X obj 149 188 sig~ 550;
#X floatatom 88 163;
#X floatatom 149 163;
#X obj 276 189 sig~ -1;
#X obj 228 189 step~;
#X msg 258 166 0;
#X msg 291 166 44100;
#X floatatom 338 166;
#X msg 228 142 bang;
#X obj 149 320 dac~;
#X obj 149 290 *~;
#X obj 431 227 dbtorms;
#X obj 431 249 pack 0 100;
#X obj 431 271 line~;
#X floatatom 431 204;
#X text 193 118 toggle::press;
#X text 38 23 This \, of course \, is a quite barbarious use of the step~-object;
#X text 124 51 but it was fast to do and I do think it illustrates the way it works.;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 2 0 15 0;
#X connect 3 0 4 0;
#X connect 4 0 15 0;
#X connect 5 0 3 0;
#X connect 6 0 0 0;
#X connect 7 0 5 0;
#X connect 8 0 4 1;
#X connect 9 0 2 1;
#X connect 9 0 4 1;
#X connect 10 0 9 1;
#X connect 11 0 9 1;
#X connect 12 0 9 1;
#X connect 13 0 9 0;
#X connect 15 0 14 0;
#X connect 15 0 14 1;
#X connect 16 0 17 0;
#X connect 17 0 18 0;
#X connect 18 0 15 1;
#X connect 19 0 16 0;
#X restore 439 186 page application;
#X msg 186 283 1;
#X connect 0 0 1 0;
#X connect 2 0 5 0;
#X connect 3 0 0 1;
#X connect 4 0 6 0;
#X connect 5 0 0 0;
#X connect 5 1 18 0;
#X connect 6 0 0 0;
#X connect 6 1 1 0;
#X connect 18 0 1 0;