blob: 2bb71412c68159a817795aa7ef06a63e27f4892d (
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
|
#N canvas 1168 140 832 409 10;
#X declare -lib cyclone;
#X text 15 35 Output the log (to a specified base) of a signal;
#X obj 377 314 clip~ 0 1;
#X floatatom 460 173 0 0 0 0 - - -;
#X floatatom 439 326 0 0 0 0 - - -;
#X obj 419 240 log~ 2;
#X obj 411 171 line~ 1;
#X msg 406 145 1 \, 1.8 3000 1 300;
#X obj 19 116 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 19 386 dac~;
#X obj 19 330 *~ 0.2;
#X obj 19 243 *~ 440;
#X msg 19 152 1.44 \, 4 3000;
#X obj 19 174 line~ 1;
#X obj 19 300 cycle~;
#X obj 19 207 log~ 2;
#X text 20 58 log~ is useful for generating curves from line~. In the
example below \, log~ with an argument 2 (for log to the base 2) is
used to generate a pitch glissando and a logarithmic amplitude envelope.
;
#X text 58 194 optional argument determines the base of the logarithm.
If no argument is present \, e (the natural logarithm) is used. base
can be changed via right inlet.;
#X text 31 281 result goes from around 220 to 880 Hz;
#X text 402 121 log amplitude envelope;
#X text 103 152 pitch glissando;
#X text 467 200 try different bases...the lower the base (above 1)
the bigger the output. bases between 0 and 1 result in a negative output.
;
#X obj 456 20 import cyclone;
#X text 42 117 click to hear something;
#X obj 439 296 Snapshot~ 50;
#X connect 1 0 9 1;
#X connect 2 0 4 1;
#X connect 4 0 1 0;
#X connect 4 0 23 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 7 0 11 0;
#X connect 7 0 6 0;
#X connect 9 0 8 0;
#X connect 9 0 8 1;
#X connect 10 0 13 0;
#X connect 11 0 12 0;
#X connect 12 0 14 0;
#X connect 13 0 9 0;
#X connect 14 0 10 0;
#X connect 23 0 3 0;
|