File: ring_modulation.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 (7 lines) | stat: -rw-r--r-- 221 bytes parent folder | download
1
2
3
4
5
6
7
SynthDef.new(\ring_modulation,
{|bus, ring, ringl, ringh|
var osc,mod;
osc = In.kr(bus, 1);
mod = ring * SinOsc.ar(Clip.kr(XLine.kr(ringl, ringl + ringh), 20, 20000));
osc = ring1(osc, mod);
ReplaceOut.kr(bus, osc)}).add;