Wavetable oscillator. More...
#include <ame_Oscillator.hpp>
Public Member Functions | |
| WavetableOscillator (std::span< FloatType, N > wavetable, const FloatTypeBase sampleRate) | |
| void | setSampleRate (const FloatTypeBase sampleRate) |
| Set sampling rate. More... | |
| void | setFrequency (const FloatTypeBase freq) noexcept |
| Set the frequency. More... | |
| void | setWavetable (std::span< FloatType, N > newWavetable) |
| Set the wavetable. More... | |
| FloatTypeBase | nextSample () noexcept |
| Generate single sample. More... | |
Wavetable oscillator.
| FloatType | float or double |
| numSamples |
|
inlinenoexcept |
Generate single sample.
|
inlinenoexcept |
Set the frequency.
| freq | frequency in Hz |
|
inline |
Set sampling rate.
| sampleRate | new sampling rate in Hz |
|
inline |
Set the wavetable.
| newWavetable |