osc – oscillator

Purpose: basic tone generation module.

Usage: [var_name] osc [wavetable] [frequency] [phase] [gain] [input] [deviation]

Parameter Data Type Description
wavetable cstring One of the four basic wavetable shapes. Keywords are sin (sine), squ (square), saw (sawtooth) and tri (triangle).
frequency float Oscillator frequency in Hertz.
phase float Waveform phase offset, where 0 <= phase < 1.0. (Not yet implemented.)
gain float Oscillator gain. Valid range is 0 – 1.0; values above 1.0 may be clipped or distorted.
input cstring Modulation input. A numeric entry will be interpreted as a sine wave at the specified frequency in Hertz. All other strings are assumed to be variable names of other Rtse objects. If an object matching the string name is not found, the oscillator will not be modulated. It is therefore recommended to use a word such as “null”, “none” or “foo” to specify no modulation (provided the word is not used as a variable name).
deviation float Amount of frequency deviation from an input modulation source. Units are still to be determined, as the amplitude of a modulation source also affects deviation. If there is no modulation source, this value has no effect.