SuperCollider CLASSES

SinOsc

Interpolating sine wavetable oscillator.
Source: /usr/local/share/SuperCollider/SCClassLibrary/Common/Audio/Osc.sc
Inherits from: PureUGen : UGen : AbstractFunction : Object

Description

This is the same as Osc except that the table is a sine table of 8192 entries.

Class Methods

*ar (freq: 440, phase: 0, mul: 1, add: 0)

*kr (freq: 440, phase: 0, mul: 1, add: 0)

Arguments:

freq

Frequency in Hertz.

phase

Phase offset or modulator in radians. (Note: phase values should be within the range +-8pi. If your phase values are larger then simply use .mod(2pi) to wrap them.)

mul

Output will be multiplied by this value.

add

This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

{ SinOsc.ar(200, 0, 0.5) }.play;

// modulate freq
{ SinOsc.ar(XLine.kr(2000, 200), 0, 0.5) }.play;

// modulate freq
{ SinOsc.ar(SinOsc.ar(XLine.kr(1, 1000, 9), 0, 200, 800), 0, 0.25) }.play;

// modulate phase
{ SinOsc.ar(800, SinOsc.ar(XLine.kr(1, 1000, 9), 0, 2pi), 0.25) }.play;