File: BasicEnvelope.scd

package info (click to toggle)
python-renardo-lib 0.9.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,220 kB
  • sloc: python: 10,999; sh: 34; makefile: 7
file content (8 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
SynthDef.new(\BasicEnvelope,
{|bus, atk, decay, sus, rel, legato, gain, amp, curve=0|
	var osc;
	osc = In.ar(bus, 2);
	sus = sus * legato;
	osc = osc * EnvGen.kr(Env([0, amp, amp*gain, amp*gain, 0],[atk, decay, sus, rel * sus], curve: curve), levelScale:0.75, timeScale:1, doneAction: 3);
	ReplaceOut.ar(bus, osc)
}).add;