Navigation
API > API/Plugins > API/Plugins/AudioWidgets > API/Plugins/AudioWidgets/SAudioSpectrumPlot
Description
This is a function to reduce the given array of data points to a possibly shorter array of points that will form the line to be plotted. Where multiple data points map to the same frequency axis pixel bucket, the given 'cost function' will be used to select the best data point (the data point with the lowest 'cost').
| Name | GetSpectrumLinePoints |
| Type | function |
| Header File | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Public/SAudioSpectrumPlot.h |
| Include Path | #include "SAudioSpectrumPlot.h" |
| Source | /Engine/Plugins/Runtime/AudioWidgets/Source/AudioWidgets/Private/SAudioSpectrumPlot.cpp |
static void GetSpectrumLinePoints
(
TArray < FVector2f > & OutLinePoints,
TConstArrayView< FVector2f > DataPoints,
const FAudioSpectrumPlotScaleInfo & ScaleInfo,
TFunctionRef < float> CostFunction
)