Classes | UGens > Generators > Deterministic

Osc : PureUGen : UGen : AbstractFunction : Object

Interpolating wavetable oscillator.
Source: Osc.sc


Linear interpolating wavetable lookup oscillator with frequency and phase modulation inputs.

This oscillator requires a buffer to be filled with a wavetable format signal. This preprocesses the Signal into a form which can be used efficiently by the Oscillator. The buffer size must be a power of 2.

This can be achieved by creating a Buffer object and sending it one of the "b_gen" messages ( Buffer: -sine1, Buffer: -sine2, Buffer: -sine3 ) with the wavetable flag set to true.

This can also be achieved by creating a Signal object and sending it the 'asWavetable' message, thereby creating a Wavetable object in the required format. Then, the wavetable data may be transmitted to the server using the Buffer: *sendCollection or Buffer: *loadCollection methods.

Class Methods

Osc.ar(bufnum, freq: 440.0, phase: 0.0, mul: 1.0, add: 0.0)

Osc.kr(bufnum, freq: 440.0, phase: 0.0, mul: 1.0, add: 0.0)



Buffer index.


Frequency in Hertz.


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.)


Output will be multiplied by this value.


This value will be added to the output.

Inherited class methods

Instance Methods

Inherited instance methods