Audio Oscillator
R2026bGenerate sine, square, and sawtooth waveforms
Libraries:
Audio Toolbox /
Sources
Description
The Audio Oscillator block generates tunable waveforms. Typical uses include the generation of test signals for test benches, and the generation of control signals for audio effects. Parameters of the Audio Oscillator block specify the type of waveform generated.

Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"audiosources/Audio Oscillator"
Example: add_block("audiosources/Audio Oscillator","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020a
See Also
Wavetable Synthesizer | audioOscillator | Audio Device Writer
