Created
August 4, 2023 20:38
-
-
Save loopier/18c416de44802100a49380817fe11b1b to your computer and use it in GitHub Desktop.
ruze sintic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
SynthDef(\ruzesintic, { | |
var out = \out.kr(0); | |
var pan = \pan.kr(0); | |
var freq = \freq.kr(440); | |
var amp = \amp.kr(1) * (-10.dbamp); | |
var atk = \atk.kr(0.01); | |
var dec = \dec.kr(0.3); | |
var sus = \sus.kr(0.5); | |
var rel = \rel.kr(1.0); | |
var gate = \gate.kr(1); | |
var env = EnvGen.ar( | |
Env.adsr(atk, dec, sus, rel), | |
gate: gate, | |
doneAction: 2 | |
); | |
var sig, fb; | |
sig = Pulse.ar(freq); | |
Out.ar(out, Pan2.ar(sig * env * amp, pan)); | |
}).add; | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment