Navigation
API > API/Plugins > API/Plugins/AudioWidgets
Description
Groups samples of a time series into an equal number of desired bins. Each bin contains the min and max values of the grouped samples.
Note: With a negative EndTime, the method will calculate automatically the EndTime by doing TotalNumSamples / (SampleRate * NDimensions)
| Name | SampledSequenceDrawingUtils::GroupInterleavedSampledTSIntoMinMaxBins |
| Type | function |
| Header File | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Public/SampledSequenceDrawingUtils.h |
| Include Path | #include "SampledSequenceDrawingUtils.h" |
namespace SampledSequenceDrawingUtils
{
template<typename SamplesType>
void SampledSequenceDrawingUtils::GroupInterleavedSampledTSIntoMinMaxBins
(
TArray < TRange < SamplesType > > & OutBins,
const uint32 NumDesiredBins,
const SamplesType * RawDataPtr,
const uint32 TotalNumSamples,
const uint32 SampleRate,
const uint16 NDimensions,
const float StartTime,
float EndTime
)
}
Parameters
| Name | Remarks |
|---|---|
| OutBins | TArray where the bins will be written to |
| NumDesiredBins | Number of output bins |
| RawDataPtr | Ptr to the beginning of the samples |
| TotalNumSamples | The total number of samples of the input time series |
| SampleRate | SampleRate of the time series |
| NDimensions | Number of interleaved dimensions in the time series |
| StartTime | The time at which grouping should start |
| EndTime | The time at which grouping should end. |