Audio.Oscillator¶
| Name | Mandatory | Description | Default | Type |
|---|---|---|---|---|
⬅️ Input |
None to generate a carrier wave, or Audio to use as phase modulation signal. | NoneAudio |
||
Output ➡️ |
The generated or modulated audio signal. | Audio |
||
Waveform |
No | The waveform type (Sine, Triangle, Sawtooth, Square). | Waveform::Sine |
Waveform |
Frequency |
No | The base frequency in Hz. | 440 |
FloatVar(Float) |
Amplitude |
No | Output amplitude (0.0 to 1.0). | 1 |
FloatVar(Float) |
Index |
No | Modulation index - controls FM depth when audio input is provided. | 1 |
FloatVar(Float) |
FMMode |
No | FM synthesis mode: Linear (phase modulation, DX7-style) or Exponential (1V/oct, modular-style). | FMMode::Linear |
FMMode |
Channels |
No | Number of output channels. | 1 |
Int |
SampleRate |
No | Sample rate in Hz. Ignored if inside Audio.Channel. | 44100 |
Int |
Samples |
No | Number of samples per buffer. Ignored if inside Audio.Channel. | 1024 |
Int |
Audio oscillator with multiple waveforms and FM synthesis support. When input is None, generates a waveform at the specified frequency. When input is Audio, uses it for FM synthesis. Linear mode (default) adds modulator to phase (DX7-style). Exponential mode scales frequency by 2^(Index*modulator) for 1V/oct modular-style FM. Multiple oscillators can be chained for complex FM patches.