Navigation
API > API/Plugins > API/Plugins/AudioWidgets
References
| Module | AudioWidgets |
| Header | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Public/SampledSequenceDrawingUtils.h |
| Include | #include "SampledSequenceDrawingUtils.h" |
namespace SampledSequenceDrawingUtils
{
template<typename SamplesType>
void SampledSequenceDrawingUtils&58;&58;GroupInterleavedSampledTSIntoMinMaxBins
&40;
TArray< TRange< SamplesType >> & OutBins,
const uint32 NumDesiredBins,
const SamplesType &42; RawDataPtr,
const uint32 TotalNumSamples,
const uint32 SampleRate,
const uint16 NDimensions,
const float StartTime,
float EndTime
&41;
}
Remarks
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)
Parameters
| Name | Description |
|---|---|
| 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. |