File: makeSound.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-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
SynthDef.new(\makeSound,
{ arg bus, sus; var osc;
	osc = In.ar(bus, 2);
  osc = EnvGen.ar(Env([1,1,0],[sus * 8, 0.1]), doneAction: 14) * osc;
	DetectSilence.ar(osc, amp:0.0001, time: 0.1, doneAction: 14);
OffsetOut.ar(0, osc[0]);
OffsetOut.ar(1, osc[1]);
 }).add;