HISE Docs

phasor

core.phasor

An oscillator that creates a naive ramp signal from 0 to 1.

Parameters

ID Range Default Description
Gate 0.00 - 1.00 1.00 Controls whether the oscillator is active (1) or inactive (0). When inactive, the oscillator's output is muted.
Frequency 20.00 - 20000.00 220.00 Sets the frequency of the oscillator in Hz. (range: 20.0 to 20000.0 Hz, default: 220.0 Hz)
Freq Ratio 1.00 - 16.00 1.00 no description.
Phase 0.00 - 1.00 0.00 Sets the starting phase of the ramp waveform. A value of 0.0 starts the waveform at the beginning, while 1.0 starts it at the end. The range is from 0.0 to 1.0, with a default of 0.0.

The phasor node generates a ramp signal that progresses linearly from 0 to 1, cycling at a user-specified frequency. This signal is added to the existing audio signal and can be used as a modulation source or basic audio waveform.

Please note that the phasor node does not include any anti-aliasing algorithms and is rather suitable as a starting point for further synthesis (table lookup, waveshaping, etc). If you intend to use the raw output of an oscillator, consider using the core.oscillator class, which provides inbuilt PolyBLEP aliasing.