SoundGenerator using the ModulationBaseClass to generate the samples.
More...
#include <AudioEffectsSuite.h>
template<class T, typename effectsuite_t = effectsuite_t_default>
class audio_tools::SoundGeneratorModulation< T, effectsuite_t >
SoundGenerator using the ModulationBaseClass to generate the samples.
- Template Parameters
-
◆ SoundGeneratorModulation()
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ applyRamp()
◆ audioInfo()
◆ begin() [1/2]
◆ begin() [2/2]
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ defaultConfig()
◆ end()
◆ isActive()
| virtual bool isActive |
( |
| ) |
|
|
inlinevirtualinherited |
Checks if the begin method has been called - after end() isActive is false.
◆ readBytes()
| virtual size_t readBytes |
( |
uint8_t * | data, |
|
|
size_t | len ) |
|
inlinevirtualinherited |
Provides the data as byte array with the requested number of channels.
◆ readBytesFrames()
| size_t readBytesFrames |
( |
uint8_t * | buffer, |
|
|
size_t | lengthBytes, |
|
|
int | frames, |
|
|
int | channels ) |
|
inlineprotectedinherited |
◆ readBytesFromBuffer()
| size_t readBytesFromBuffer |
( |
uint8_t * | buffer, |
|
|
size_t | lengthBytes, |
|
|
int | frame_size, |
|
|
int | channels ) |
|
inlineprotectedinherited |
◆ readSample()
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ readSamples()
| virtual size_t readSamples |
( |
T * | data, |
|
|
size_t | len ) |
|
inlinevirtualinherited |
Provides the data as T array (interleaved by channel) with the requested number of samples (values, not frames)
◆ recalculatePlayTime()
| void recalculatePlayTime |
( |
| ) |
|
|
inlineprotectedinherited |
◆ restart()
Restarts the generator, e.g. after a play time has been defined and reached.
◆ setAudioInfo()
◆ setFrequency()
| virtual void setFrequency |
( |
float | frequency | ) |
|
|
inlinevirtualinherited |
◆ setPlayTime()
| virtual void setPlayTime |
( |
uint32_t | playMs, |
|
|
uint8_t | upPercent = 20, |
|
|
uint8_t | downPercent = 30 ) |
|
inlinevirtualinherited |
Defines the play time in ms and the ramp up and ramp down time in percent.
◆ setRampTimes()
| virtual void setRampTimes |
( |
uint32_t | playMs, |
|
|
uint32_t | upMs = 5, |
|
|
uint32_t | downMs = 5 ) |
|
inlinevirtualinherited |
Alternative to setPlayTime. It sets ramp-up and ramp-down times in ms instead of percentages. If playMs == 0, it will play indefinitely. restart();begin(); starts the ramp-up and sustain as normal, but it will sustain forever. end(true) triggers a ramp-down then inactive.
◆ active
◆ activeWarningIssued
◆ currentSample
◆ downMs
◆ downPercent
◆ downSamples
◆ factor
◆ freq
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ info
◆ max_value
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ p_mod
template<class T, typename effectsuite_t = effectsuite_t_default>
◆ playMs
◆ playSamples
◆ rampDownDec
◆ rampUpInc
◆ ring_buffer
◆ upMs
◆ upPercent
◆ upSamples
The documentation for this class was generated from the following file: