VarSaw

final case
class VarSaw(rate: Rate, freq: GE, iphase: GE, width: GE) extends SingleOut

A sawtooth-triangle oscillator UGen with variable duty. A width of zero produces a sawtooth of falling slope, with an initial phase of zero making it start at +1. A width of 0.5 produces a triangle wave, starting at -1 then raising to +1, then falling again to -1. A width of 1.0 produces a sawtooth of rising slope, starting -1.

Increasing the initial wave will increase the offset into the waveform. For example, with a phase of 0.5 and a width of 0.5, the result is a triangle waveform that starts at +1.

There is a strange anomaly for the falling sawtooth (zero width): Instead of starting directly at +1, the first sample is -1 and only from the second sample at +1 the waveform starts falling. In other words, the waveform has a delay of one sample.

Value Params
freq

frequency in Hertz

iphase

initial phase offset in cycle (0 to 1)

width

duty cycle from zero to one.

See also
Companion
object
trait Serializable
class SingleOut
class SomeOut
trait Lazy
trait GE
class UGenSource[UGenInLike]
trait Expander[UGenInLike]
trait Lazy
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Inherited methods

final
def name: String
Inherited from
UGenSource
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Inherited fields

lazy override
val hashCode: Int
Inherited from
UGenSource