Original code by E. Gillet. Revisted by Ben Sergentanis for the DaisySP DSP library. Ported to SuperCollider by Mads Kjeldgaard.
freq |
Main frequency in hz |
pw |
Pulse width when shape is square. Saw, ramp, tri otherwise. 0.0 to 1.0. |
waveshape |
Blend between waveshapes. 0.0 is saw/ramp/tri and 1.0 is square. |
sync |
Whether or not to sync oscillator. 1.0 turns sync on. 0.0 is off. |
syncfreq |
Sync oscillator frequency in herz. |
(
Ndef(\helloooo, {
var mod = SinOsc.kr(LFNoise2.kr(4) * 10);
var sig = VarShapeOsc.ar(
freq: 100,
pw: SinOsc.kr(0.01).unipolar,
waveshape: mod.lag.unipolar,
sync: 1,
syncfreq: 182
);
Pan2.ar(sig, mod);
}).play;
)