aboutsummaryrefslogtreecommitdiff
path: root/doc/help/cyclone/rampsmooth~-help.pd
blob: ae548000ba77f1af9f8304e765553ecdd1023148 (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
#N canvas 1475 367 502 431 10;
#X declare -lib cyclone;
#X text 15 35 smooth out an incoming signal via a ramp;
#X msg 49 161 1;
#X msg 18 161 0;
#X msg 217 222 rampdown \$1;
#X floatatom 217 203 0 0 0 0 - - -;
#X msg 155 222 rampup \$1;
#X floatatom 155 203 0 0 0 0 - - -;
#X text 19 60 rampsmooth~ smooths an incoming signal across n samples.
Each time an incoming value changes \, it begins a linear ramp of n
samples to reach this value. Useful for envelope following and lowpass
filtering. The number of samples is specified either as arguments or
with the ramp \, rampup \, rampdown messages.;
#X obj 32 222 sig~;
#X floatatom 32 203 0 0 0 0 - - -;
#X msg 93 222 ramp \$1;
#X floatatom 93 203 0 0 0 0 - - -;
#X text 181 246 args: <rampup> <rampdown>;
#X obj 144 280 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135
135 135 0;
#X obj 367 43 import cyclone;
#X obj 32 246 rampsmooth~ 44100 44100;
#X obj 32 294 Snapshot~ 100;
#X obj 33 325 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 2.29181e-18 256;
#X connect 1 0 9 0;
#X connect 2 0 9 0;
#X connect 3 0 15 0;
#X connect 4 0 3 0;
#X connect 5 0 15 0;
#X connect 6 0 5 0;
#X connect 8 0 15 0;
#X connect 9 0 8 0;
#X connect 10 0 15 0;
#X connect 11 0 10 0;
#X connect 15 0 13 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;