Reduce OSC synth attack/decay envelope times
This commit is contained in:
parent
42aa7798d2
commit
040ab9999d
|
|
@ -3,13 +3,14 @@
|
|||
// Then click nodes in the webapp to play tones
|
||||
|
||||
s.boot;
|
||||
(
|
||||
s.waitForBoot {
|
||||
|
||||
// Define synth on the server with long attack and decay
|
||||
SynthDef(\sineTone, {
|
||||
|freq = 440, amp = 0.15|
|
||||
var env = EnvGen.kr(
|
||||
Env([0, 1, 0.8, 0], [2, 3.0, 3], \sin),
|
||||
Env([0, 1, 0.8, 0], [1, 1.0, 3], \sin),
|
||||
doneAction: Done.freeSelf
|
||||
);
|
||||
Out.ar(0, SinOsc.ar(freq) * env * amp);
|
||||
|
|
@ -34,3 +35,4 @@ s.waitForBoot {
|
|||
// Keep alive
|
||||
while { true } { 10.wait; };
|
||||
}
|
||||
)
|
||||
Loading…
Reference in a new issue