A sine generator based on a table. The table is created using degrees where one full wave is 360 degrees.
More...
|
| SineFromTable (float amplitude=32767.0) |
|
virtual AudioInfo | audioInfo () |
| Provides the AudioInfo.
|
|
bool | begin () |
|
virtual bool | begin (AudioInfo info) |
|
bool | begin (AudioInfo info, float frequency) |
|
bool | begin (int channels, int sample_rate, uint16_t frequency=0) |
|
virtual AudioInfo | defaultConfig () |
| Provides the default configuration.
|
|
virtual void | end () |
| ends the processing
|
|
virtual bool | isActive () |
|
virtual size_t | readBytes (uint8_t *data, size_t len) |
| Provides the data as byte array with the requested number of channels.
|
|
T | readSample () |
| Provides a single sample.
|
|
void | setAmplitude (float amplitude) |
| Defines the new amplitude (volume)
|
|
virtual void | setAudioInfo (AudioInfo info) |
| Defines/updates the AudioInfo.
|
|
void | setFrequency (float freq) |
| Abstract method: not implemented! Just provides an error message...
|
|
void | setMaxAmplitudeStep (float step) |
|
|
T | interpolate (float angle) |
|
T | map (T x, T in_min, T in_max, T out_min, T out_max) |
|
size_t | readBytesFrames (uint8_t *buffer, size_t lengthBytes, int frames, int channels) |
|
size_t | readBytesFromBuffer (uint8_t *buffer, size_t lengthBytes, int frame_size, int channels) |
|
void | updateAmplitudeInSteps () |
|
template<class T = int16_t>
class audio_tools::SineFromTable< T >
A sine generator based on a table. The table is created using degrees where one full wave is 360 degrees.
- Author
- Phil Schatzmann
- Copyright
- GPLv3