VarSaw:
Filter:
Classes | UGens > Generators > Deterministic

VarSaw : PureUGen : UGen : AbstractFunction : Object

Variable duty saw
Source: Osc.sc

Description

Sawtooth-triangle oscillator with variable duty.

Class Methods

VarSaw.ar(freq: 440.0, iphase: 0.0, width: 0.5, mul: 1.0, add: 0.0)

VarSaw.kr(freq: 440.0, iphase: 0.0, width: 0.5, mul: 1.0, add: 0.0)

Arguments:

freq

Frequency in Hertz. Positive frequencies only.

WARNING: VarSaw will go out of range if the frequency exceeds the sampling rate (which for control rate is s.sampleRate / s.options.blockSize).
iphase

Initial phase offset in cycles. [0..1]

width

Duty cycle, denoting where in the cycle the waveform peaks. E.g. for widths of 0, 0.5, or 1.0, the waveform will peak at the beginning, middle, or end of the cycle, respectively. [0..1] (clipped internally to [0.001..0.999])

mul

The 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