-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript2.scd
More file actions
70 lines (41 loc) · 863 Bytes
/
Copy pathscript2.scd
File metadata and controls
70 lines (41 loc) · 863 Bytes
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
// script 2
para encender el servidor de audio hay que declarar la siguiente linea:
s.boot
luego para probar si funciona ejecuta esta linea:
{SinOsc.ar()}.play
//para apagar todo el sonido
en mac cmd + .
en linux ctrl + .
// ahora si
// tenemos un Ndef
{SinOsc.ar(40)}.scope
(
Ndef(\x,{
arg freq, amp;
var sig;
sig = SinOsc.ar(freq,0,amp);
//La linea de abajo es para
//limitar la señal por seguridad
sig = Limiter.ar(sig,1);/////
////////////////////////////
})
)
Ndef(\x).playN([0,1])
Ndef(\x).set(\freq, 240, \amp, 0.2)
s.meter
(
// Tdef quiere decir Task definition
Tdef(\tarea,{
1.do{
Ndef(\x).playN([0,1]);
Ndef(\x).set(\freq, 300, \amp, 0.5);
180.wait;
Ndef(\x).playN([0,1]);
Ndef(\x).set(\freq, 400, \amp, 0.4);
180.wait;
Ndef(\x).stop;
"ya estubo".postln
}
})
)
Tdef(\tarea).play