Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/OnsetAnalyzer.h |
Include |
#include "OnsetAnalyzer.h" |
class FOnsetStrengthAnalyzer
FOnsetStrengthAnalyzer calculates the onset strength from audio.
Onset strength is calculated as the half wave rectificed difference between two spectral frames. This onset strength onset analyzer uses the following approach.
[audio]->[fft]->[mel spectrum]->[diff]->[half wave rectify]->[mean]->[onset strength] | | >-[lag]--|
Name | Description | |
---|---|---|
|
FOnsetStrengthAnalyzer ( |
Name | Description | ||
---|---|---|---|
|
CalculateOnsetStrengths ( |
Calculates onset strengths from audio and fills OutOnsetStrengths with generated onset strengths |
|
|
FlushAudio ( |
Call when done processing audio for an audio analyzer |
|
|
float |
GetTimestampForIndex ( |
Converts an onset strength index into a timestamp. |
|
Reset() |
Call to reset internal counters and lag spectra. |