aboutsummaryrefslogtreecommitdiff
path: root/doc/help/cyclone/pong~-help.pd
blob: efff81edbe2c437dffb495b4f4ed1af64d1078c6 (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
#N canvas 1472 392 646 472 10;
#X declare -lib cyclone;
#X text 25 -55 fold or wrap a signal within a given range;
#X text 305 104 lo val;
#X text 360 104 hi val;
#X floatatom 361 121 0 0 0 0 - - -;
#X floatatom 305 121 0 0 0 0 - - -;
#X floatatom 236 116 0 0 0 0 - - -;
#X obj 236 137 phasor~ 4;
#X text 86 117 lo val;
#X text 162 112 hi val;
#X obj 163 150 sig~ 0.25;
#X floatatom 163 129 0 0 0 0 - - -;
#X obj 86 155 sig~ -0.25;
#X floatatom 86 134 0 0 0 0 - - -;
#X floatatom 14 120 0 0 0 0 - - -;
#X obj 14 141 phasor~ 4;
#X text 28 -30 pong either folds or wraps its input within the range
of a lo val and a hi val. The optional arguments are <mode> <lo val>
<high val>. mode 0 is fold \, mode 1 is wrap. The default mode is fold.
The default range is zero to one. If hi val is greater than lo val
\, their behavior is swapped. All inlets accept both signals and floats.
The mode <int> message may be used to switch between fold and wrap
mode. It is useful for performing modulo arithmetic \, as well as foldover
or wraparound distortion.;
#X obj 448 -20 import cyclone;
#X obj 29 252 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135
135 135 0;
#X obj 237 272 Scope~ 130 130 256 3 128 -1 1 0 0 0 0 102 255 51 135
135 135 0;
#X obj 256 222 Snapshot~ 100;
#X obj 257 245 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0.0467523 256;
#X obj 45 207 Snapshot~ 100;
#X obj 46 230 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0.0467523 256;
#X obj 30 179 pong~ 0 -0.25 0.25;
#X obj 237 197 pong~ 1 -0.25 0.25;
#X msg 425 147 mode 0;
#X msg 424 174 mode 1;
#X text 471 147 fold;
#X text 472 173 wrap;
#X connect 3 0 24 2;
#X connect 4 0 24 1;
#X connect 5 0 6 0;
#X connect 6 0 24 0;
#X connect 9 0 23 2;
#X connect 10 0 9 0;
#X connect 11 0 23 1;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 14 0 23 0;
#X connect 19 0 20 0;
#X connect 21 0 22 0;
#X connect 23 0 17 0;
#X connect 23 0 21 0;
#X connect 24 0 18 0;
#X connect 24 0 19 0;
#X connect 25 0 24 0;
#X connect 26 0 24 0;