Navigation
API > API/Plugins > API/Plugins/AudioWidgets
Description
Groups samples evenly into a number of desired bins. Each bin contains the min and max values of the grouped samples.
| Name | SampledSequenceDrawingUtils::GroupInterleavedSamplesIntoMinMaxBins |
| 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::GroupInterleavedSamplesIntoMinMaxBins
(
TArray < TRange < SamplesType > > & OutBins,
const uint32 NumDesiredBins,
const SamplesType * RawDataPtr,
const uint32 TotalNumSamples,
const uint16 NDimensions,
const double StartRatio,
double EndRatio
)
}
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 |
| NDimensions | Number of interleaved dimensions in the time series |
| StartRatio | The ratio of the total number of frames (in a range of 0-1) at which grouping should start |
| EndRatio | The ratio of the total number of frames (in a range of 0-1) at which grouping should end. |