#include <TimeDomainAnalysisFramework.h>
◆ TimeDomainAnalysisFramework()
| krotos::TimeDomainAnalysisFramework::TimeDomainAnalysisFramework |
( |
int | analysisFrameSize, |
|
|
int | sampleRate ) |
Constructor. Initialises the
- Parameters
-
| inputFrameIncrement | the distance moved between analysed frames |
| analysisBufferSize | the audio analysis buffer size |
| fs | the sampling frequency |
Copyright Krotos LTD 2015
All rights reserved.
◆ getEnergyDifference()
| float krotos::TimeDomainAnalysisFramework::getEnergyDifference |
( |
| ) |
|
@Returns the change in energy over time
◆ getPeakEnergy()
| float krotos::TimeDomainAnalysisFramework::getPeakEnergy |
( |
| ) |
|
@Returns the peak energy of the audio analysis buffer
◆ getPitchAutocorrelation()
| float krotos::TimeDomainAnalysisFramework::getPitchAutocorrelation |
( |
| ) |
|
@Returns the pitch of the audio analysis buffer by autocorrelation method
◆ getPitchMcLeod()
| float krotos::TimeDomainAnalysisFramework::getPitchMcLeod |
( |
| ) |
|
@Returns the pitch of the audio analysis buffer by McLeod method
◆ getRMS()
| float krotos::TimeDomainAnalysisFramework::getRMS |
( |
| ) |
|
@Returns the RMS energy of the audio analysis buffer
◆ getSamplingFrequency()
| int krotos::TimeDomainAnalysisFramework::getSamplingFrequency |
( |
| ) |
|
@Returns the sampling frequency
◆ getSignalEnvelope()
| float krotos::TimeDomainAnalysisFramework::getSignalEnvelope |
( |
| ) |
|
@Returns the signal envelope
◆ initialisePitchTrackingAlgorithms()
| void krotos::TimeDomainAnalysisFramework::initialisePitchTrackingAlgorithms |
( |
| ) |
|
|
private |
Sets spectral frame and the spectral frame Size
◆ setSamplingFrequency()
| void krotos::TimeDomainAnalysisFramework::setSamplingFrequency |
( |
int | fs | ) |
|
Sets the sampling frequency to be used for audio analysis
- Parameters
-
| fs | the sampling frequency to be used |
◆ setSignalEnvelopeSmoothingFactor()
| void krotos::TimeDomainAnalysisFramework::setSignalEnvelopeSmoothingFactor |
( |
float | smoothingFactor | ) |
|
Sets the smoothing factor for the signal envelope.
- Parameters
-
| smoothingFactor | the smoothing factor, where 1 is the most filtered, 0 is no smoothing at all |
◆ setSignalFrame()
| void krotos::TimeDomainAnalysisFramework::setSignalFrame |
( |
std::vector< float > | spectralFrame | ) |
|
Receives a spectral frame to perform some analysis calculations and analysis features upon.
◆ m_energyDifferenceCalculated
| bool krotos::TimeDomainAnalysisFramework::m_energyDifferenceCalculated |
|
private |
◆ m_energyDifferenceValue
| float krotos::TimeDomainAnalysisFramework::m_energyDifferenceValue |
|
private |
◆ m_lowpassFilter
| LowpassFilter krotos::TimeDomainAnalysisFramework::m_lowpassFilter |
|
private |
◆ m_pitchAutocorrelation
| float krotos::TimeDomainAnalysisFramework::m_pitchAutocorrelation {0.0f} |
|
private |
◆ m_pitchMcLeod
| float krotos::TimeDomainAnalysisFramework::m_pitchMcLeod {0.0f} |
|
private |
◆ m_pitchTrackerAutocorrelation
| Autocorrelation krotos::TimeDomainAnalysisFramework::m_pitchTrackerAutocorrelation |
|
private |
◆ m_pitchTrackerMcLeod
| McLeod krotos::TimeDomainAnalysisFramework::m_pitchTrackerMcLeod |
|
private |
◆ m_previousEnergyDifferenceValue
| float krotos::TimeDomainAnalysisFramework::m_previousEnergyDifferenceValue |
|
private |
◆ m_rmsCalculated
| bool krotos::TimeDomainAnalysisFramework::m_rmsCalculated |
|
private |
◆ m_rmsValue
| float krotos::TimeDomainAnalysisFramework::m_rmsValue |
|
private |
◆ m_samplingFrequency
| int krotos::TimeDomainAnalysisFramework::m_samplingFrequency {-1} |
|
private |
◆ m_signalFrame
| std::vector<float> krotos::TimeDomainAnalysisFramework::m_signalFrame |
|
private |
◆ m_signalFrameSize
| int krotos::TimeDomainAnalysisFramework::m_signalFrameSize {-1} |
|
private |
The documentation for this class was generated from the following files: