A sine generator based on a table. The table is created using degrees where one full wave is 360 degrees.
More...
#include <SoundGenerator.h>
|
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 () |
|
|
bool | active = false |
|
bool | activeWarningIssued = false |
|
float | amplitude |
|
float | amplitude_to_be |
|
float | angle = 0.0f |
|
float | base_frequency = 1.0f |
|
AudioInfo | info |
|
bool | is_first = true |
|
float | max_amplitude_step = 50.0f |
|
RingBuffer< uint8_t > | ring_buffer {0} |
|
float | step = 1.0f |
|
float | step_new = 1.0f |
|
const float | values [181] |
|
template<class 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
◆ isActive()
virtual bool isActive |
( |
| ) |
|
|
inlinevirtualinherited |
Checks if the begin method has been called - after end() isActive returns false
◆ setMaxAmplitudeStep()
void setMaxAmplitudeStep |
( |
float |
step | ) |
|
|
inline |
To avoid pops we do not allow to big amplitude changes at once and spread them over time
The documentation for this class was generated from the following file: