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
|
// Then click nodes in the webapp to play tones
|
||||||
|
|
||||||
s.boot;
|
s.boot;
|
||||||
|
(
|
||||||
s.waitForBoot {
|
s.waitForBoot {
|
||||||
|
|
||||||
// Define synth on the server with long attack and decay
|
// Define synth on the server with long attack and decay
|
||||||
SynthDef(\sineTone, {
|
SynthDef(\sineTone, {
|
||||||
|freq = 440, amp = 0.15|
|
|freq = 440, amp = 0.15|
|
||||||
var env = EnvGen.kr(
|
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
|
doneAction: Done.freeSelf
|
||||||
);
|
);
|
||||||
Out.ar(0, SinOsc.ar(freq) * env * amp);
|
Out.ar(0, SinOsc.ar(freq) * env * amp);
|
||||||
|
|
@ -33,4 +34,5 @@ s.waitForBoot {
|
||||||
|
|
||||||
// Keep alive
|
// Keep alive
|
||||||
while { true } { 10.wait; };
|
while { true } { 10.wait; };
|
||||||
}
|
}
|
||||||
|
)
|
||||||
Loading…
Reference in a new issue