File: FrequencyModulationPulse.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-- 189 bytes parent folder | download
1
2
3
4
5
6
7
SynthDef.new(\FrequencyModulationPulse, {
	|bus, fm_pulse, fm_pulse_i|
	var osc;
	osc = In.kr(bus, 1);
	osc = osc + (fm_pulse_i * Pulse.kr(osc * fm_pulse));
	ReplaceOut.kr(bus, osc)
}).add;