Module |
|
Header |
/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Classes/SoundVisualizationStatics.h |
Include |
#include "SoundVisualizationStatics.h" |
Source |
/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Private/SoundVisualizationStatics.cpp |
[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="SoundVisualization")
static void CalculateFrequencySpectrum
(
USoundWave * SoundWave,
int32 Channel,
float StartTime,
float TimeLength,
int32 SpectrumWidth,
TArray< float > & OutSpectrum
)
Calculates the frequency spectrum for a window of time for the SoundWave
OutSpectrum - The resulting spectrum
Parameter |
Description |
---|---|
SoundWave |
The wave to generate the spectrum for |
Channel |
The channel of the sound to calculate. Specify 0 to combine channels together |
StartTime |
The beginning of the window to calculate the spectrum of |
TimeLength |
The duration of the window to calculate the spectrum of |
SpectrumWidth |
How wide the spectrum is. The total samples in the window are divided evenly across the spectrum width. |