USoundVisualizationStatics::CalculateFrequencySpectrum

Calculates the frequency spectrum for a window of time for the SoundWave

Windows
MacOS
Linux

References

Module

SoundVisualizations

Header

/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Classes/SoundVisualizationStatics.h

Include

#include "SoundVisualizationStatics.h"

Source

/Engine/Plugins/Runtime/SoundVisualizations/Source/SoundVisualizations/Private/SoundVisualizationStatics.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="SoundVisualization")
static void CalculateFrequencySpectrum
(
    USoundWave * SoundWave,
    int32 Channel,
    float StartTime,
    float TimeLength,
    int32 SpectrumWidth,
    TArray< float > & OutSpectrum
)

Remarks

Calculates the frequency spectrum for a window of time for the SoundWave

Returns

OutSpectrum - The resulting spectrum

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss