Codebox Operators tri

tri

Anti-aliased triangular oscillator.

new tri()

Methods

next(frequency, pulsewidth, syncPhase): [out1, out2]

Arguments

NameTypeDefaultDescription
frequencynumber
pulsewidthnumber0.5
syncPhasenumber

Returns

NameTypeDescription
out1number

An antialiased triangular waveform. An ideal, straight-line
triangular wave generated in a computer contains aliased
frequencies that can sound irritating. {rnbo_tri~} produces a nice,
analog-esque output waveform.

out2number

The phase of the oscillator.

reset(): void