Processes audio samples using a sliding window sparse CQT.
More...
#include <CQTProcessor.hpp>
Processes audio samples using a sliding window sparse CQT.
This class provides methods to process individual samples and blocks of data using a sliding window implementation of the sparse CQT.
◆ SlidingCqtSparseProcessor()
| SlidingCqtSparseProcessor::SlidingCqtSparseProcessor |
( |
double | sampleRate, |
|
|
Eigen::Index | numSamples, |
|
|
double | fraction, |
|
|
double | minFrequency, |
|
|
double | maxFrequency, |
|
|
double | refFrequency ) |
Constructs a SlidingCqtSparseProcessor object.
- Parameters
-
| sampleRate | The sampling rate of the audio signal. |
| numSamples | The number of samples to process. |
| fraction | Reciprocal of bands per octave (e.g. 1.0/12 for 12 bands/octave); fractional values allowed. |
| minFrequency | The minimum frequency of the CQT. |
| maxFrequency | The maximum frequency of the CQT. |
| refFrequency | The reference frequency for the CQT. |
◆ ~SlidingCqtSparseProcessor()
| virtual jsa::cicuetea::SlidingCqtSparseProcessor::~SlidingCqtSparseProcessor |
( |
| ) |
|
|
virtualdefault |
Virtual destructor for safe polymorphic use.
Declared virtual to ensure that derived classes can be safely deleted through a base class pointer. This destructor is defaulted as the base class does not require custom cleanup.
◆ getCqt()
| const NsgfCqtSparse & jsa::cicuetea::SlidingCqtSparseProcessor::getCqt |
( |
| ) |
const |
|
inline |
Gets the CQT object.
- Returns
- A constant reference to the CQT object.
◆ getCqtWindow()
| const Eigen::ArrayXd & jsa::cicuetea::SlidingCqtSparseProcessor::getCqtWindow |
( |
Eigen::Index | k | ) |
const |
|
inline |
Gets the CQT window for a specific index.
- Parameters
-
| k | The index of the CQT window. |
- Returns
- A constant reference to the CQT window.
◆ getLatency()
| Eigen::Index jsa::cicuetea::SlidingCqtSparseProcessor::getLatency |
( |
| ) |
const |
|
inline |
Gets the latency produced by the processor.
- Returns
- Integer number of samples of delay between input and output.
◆ getWindow()
| const Eigen::ArrayXd & jsa::cicuetea::SlidingCqtSparseProcessor::getWindow |
( |
| ) |
const |
|
inline |
Gets the windowing function.
- Returns
- A constant reference to the windowing function.
◆ isValid()
| bool jsa::cicuetea::SlidingCqtSparseProcessor::isValid |
( |
| ) |
const |
|
inline |
◆ processBlock()
Processes a block of data.
- Parameters
-
| block | The block of data to process. |
◆ processSample()
| double SlidingCqtSparseProcessor::processSample |
( |
double | sample | ) |
|
Processes a single audio sample.
- Parameters
-
| sample | The audio sample to process. |
- Returns
- The processed sample.
The documentation for this class was generated from the following files:
- /home/runner/work/CiCueTea/CiCueTea/Include/CQTProcessor.hpp
- /home/runner/work/CiCueTea/CiCueTea/Source/CQTProcessor.cpp