The AudioDetector object implements the audio detector defined in the book source below. NOTE: this detector can receive signals and transmit detection values that are both > 0dBFS.
More...
#include <fxobjects.h>
|
| void | setAttackTime (double attack_in_ms, bool forceCalc=false) |
| | sets the new attack time and re-calculates the time constant
|
| |
| void | setReleaseTime (double release_in_ms, bool forceCalc=false) |
| | sets the new release time and re-calculates the time constant
|
| |
|
|
AudioDetectorParameters | audioDetectorParameters |
| | parameters for object
|
| |
|
double | attackTime = 0.0 |
| | attack time coefficient
|
| |
|
double | releaseTime = 0.0 |
| | release time coefficient
|
| |
|
double | sampleRate = 44100 |
| | stored sample rate
|
| |
|
double | lastEnvelope = 0.0 |
| | output register
|
| |
The AudioDetector object implements the audio detector defined in the book source below. NOTE: this detector can receive signals and transmit detection values that are both > 0dBFS.
Audio I/O:
- Processes mono input to a detected signal output.
Control I/F:
- Author
- Will Pirkle http://www.willpirkle.com
- Version
- Revision : 1.0
- Date
- Date : 2018 / 09 / 7
◆ canProcessAudioFrame()
| virtual bool AudioDetector::canProcessAudioFrame |
( |
| ) |
|
|
inlinevirtual |
◆ getParameters()
get parameters: note use of custom structure for passing param data
- Returns
- AudioDetectorParameters custom data structure
◆ processAudioSample()
| virtual double AudioDetector::processAudioSample |
( |
double |
xn | ) |
|
|
inlinevirtual |
◆ reset()
| virtual bool AudioDetector::reset |
( |
double |
_sampleRate | ) |
|
|
inlinevirtual |
set sample rate dependent time constants and clear last envelope output value
Implements IAudioSignalProcessor.
◆ setAttackTime()
| void AudioDetector::setAttackTime |
( |
double |
attack_in_ms, |
|
|
bool |
forceCalc = false |
|
) |
| |
|
protected |
sets the new attack time and re-calculates the time constant
set our internal atack time coefficients based on times and sample rate
- Parameters
-
| attack_in_ms | the new attack timme |
| forceCalc | flag to force a re-calculation of time constant even if values have not changed. |
◆ setParameters()
set parameters: note use of custom structure for passing param data
- Parameters
-
◆ setReleaseTime()
| void AudioDetector::setReleaseTime |
( |
double |
release_in_ms, |
|
|
bool |
forceCalc = false |
|
) |
| |
|
protected |
sets the new release time and re-calculates the time constant
set our internal release time coefficients based on times and sample rate
- Parameters
-
| release_in_ms | the new relase timme |
| forceCalc | flag to force a re-calculation of time constant even if values have not changed. |
◆ setSampleRate()
| virtual void AudioDetector::setSampleRate |
( |
double |
_sampleRate | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following files: