Summary

Create a sine wave signal

Audio Connections

PortPurpose
Out 0Sine Wave Output

Functions

amplitude(level);

Set the amplitude, from 0 to 1.0.

frequency(freq);

Set the frequency, from 0 to 22000. Very low values may be used to create a LFO (Low Frequency Oscillator) for objects with modulation signal inputs.

phase(angle);

Cause the generated waveform to jump to a specific point within its cycle. Angle is from 0 to 360 degrees. When multiple objects are configured, AudioNoInterrupts() should be used to guarantee all new settings take effect together.

Examples

File > Examples > Audio > MemoryAndCpuUsage

File > Examples > Audio > Analysis > DialTone_Serial

File > Examples > Audio > Analysis > FFT

Notes