Navigation
API > API/Plugins > API/Plugins/AudioSynesthesiaCore
References
| Module | AudioSynesthesiaCore |
| Header | /Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/OnsetAnalyzer.h |
| Include | #include "OnsetAnalyzer.h" |
Syntax
class FOnsetStrengthAnalyzer
Remarks
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]--|
Constructors
| Type | Name | Description | |
|---|---|---|---|
FOnsetStrengthAnalyzer
(
const FOnsetStrengthSettings& InSettings, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CalculateOnsetStrengths
(
TArrayView< const float > InSamples, |
Calculates onset strengths from audio and fills OutOnsetStrengths with generated onset strengths | |
| void | FlushAudio
(
TArray< float >& OutEnvelopeStrengths |
Call when done processing audio for an audio analyzer | |
| float | GetTimestampForIndex
(
const FOnsetStrengthSettings& InSettings, |
Converts an onset strength index into a timestamp. | |
| void | Reset () |
Call to reset internal counters and lag spectra. |