Navigation
API > API/Plugins > API/Plugins/AudioSynesthesiaCore
FOnsetNRTResult is a container for the output of the FOnsetNRTWorker.
| Name | FOnsetNRTResult |
| Type | class |
| Header File | /Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/OnsetNRTFactory.h |
| Include Path | #include "OnsetNRTFactory.h" |
Syntax
class FOnsetNRTResult : public IAnalyzerNRTResult
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FOnsetNRTResult() |
OnsetNRTFactory.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsSortedChronologically | bool | OnsetNRTFactory.h | ||
| ChannelOnsets | TMap< int32, TArray< FOnset > > | OnsetNRTFactory.h | ||
| ChannelOnsetStrengthIntervals | TMap< int32, FFloatInterval > | OnsetNRTFactory.h | ||
| DurationInSeconds | float | OnsetNRTFactory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddChannel
(
int32 InChannelIndex |
Adds an empty channel. Useful if a channel exists without any onsets. | OnsetNRTFactory.h | |
void AddOnset
(
int32 InChannelIndex, |
Add a single frame of CQT data | OnsetNRTFactory.h | |
bool ContainsChannel
(
int32 InChannelIndex |
Returns true if this result contains the channel index. | OnsetNRTFactory.h | |
FFloatInterval GetChannelOnsetInterval
(
int32 InChannelIdx |
Retrieve the interval of the maximum and minimum strengths of all onsets in channel. | OnsetNRTFactory.h | |
void GetChannels
(
TArray< int32 >& OutChannels |
Retrieve the channels available in the result. | OnsetNRTFactory.h | |
virtual float GetDurationInSeconds() |
Returns the duration of the analyzed audio in seconds | OnsetNRTFactory.h | |
| Retrieve the array of frames for a single channel of audio. | OnsetNRTFactory.h | ||
bool IsSortedChronologically() |
Returns true if FOnset arrays are sorted in chronologically ascending order via their timestamp. | OnsetNRTFactory.h | |
virtual void Serialize
(
FArchive& Archive |
Serialize or unserialize object | OnsetNRTFactory.h | |
void SetDurationInSeconds
(
float InDuration |
Sets the duration of the analyzed audio in seconds | OnsetNRTFactory.h | |
void SortChronologically () |
Sorts FOnset arrays in chronologically ascnding order via their timestamp. | OnsetNRTFactory.h |