Navigation
API > API/Plugins > API/Plugins/AudioSynesthesiaCore
The Constant Q Analyzer computs a pseudo constant q transform of the input audio. ConstantQ transforms produce frequency strength at logarithmically spaced frequency intervals (as opposed to the linearly spaced intervals of the FFT). Logarithmically spaced frequency intervals map nicely to musical scales.
| Name | FConstantQAnalyzer |
| Type | class |
| Header File | /Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/ConstantQAnalyzer.h |
| Include Path | #include "ConstantQAnalyzer.h" |
Syntax
class FConstantQAnalyzer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FConstantQAnalyzer
(
const FConstantQAnalyzerSettings& InSettings, |
Construct a FConstantQAnalyzer | ConstantQAnalyzer.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActualFFTSize | int32 | ConstantQAnalyzer.h | ||
| ComplexSpectrum | FAlignedFloatBuffer | ConstantQAnalyzer.h | ||
| CQTTransform | TUniquePtr< FContiguousSparse2DKernelTransform > | ConstantQAnalyzer.h | ||
| FFT | TUniquePtr< IFFTAlgorithm > | ConstantQAnalyzer.h | ||
| NumUsefulFFTBins | int32 | Only the first (FFTSize / 2) + 1 FFT bins are used since FFT of real values is conjugate symmetric. | ConstantQAnalyzer.h | |
| RealSpectrum | FAlignedFloatBuffer | ConstantQAnalyzer.h | ||
| SampleRate | const float | ConstantQAnalyzer.h | ||
| Settings | const FConstantQAnalyzerSettings | ConstantQAnalyzer.h | ||
| Window | FWindow | Scale factor to normalize between different FFT Sizes | ConstantQAnalyzer.h | |
| WindowedSamples | FAlignedFloatBuffer | ConstantQAnalyzer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalculateCQT
(
const float* InSamples, |
Calcualte Constant Q Transform of input audio. | ConstantQAnalyzer.h | |
const FConstantQAnalyzerSettings & GetSettings() |
Returns a reference to the settings used in this analyzer | ConstantQAnalyzer.h |