Audio::GetInterpolationParametersAtTimestamp

GetInterpolationParametersAtTimestamp

Windows
MacOS
Linux

References

Module

AudioSynesthesiaCore

Header

/Engine/Plugins/Runtime/AudioSynesthesia/Source/AudioSynesthesiaCore/Public/InterpolateSorted.h

Include

#include "InterpolateSorted.h"

Syntax

namespace Audio
{
    template<typename ElementType>
    void Audio::GetInterpolationParametersAtTimestamp
    (
        TArrayView < const ElementType > InArray,
        float InTimestamp,
        int32 & OutLowerIndex,
        int32 & OutUpperIndex,
        float & OutAlpha
    )
}

Remarks

GetInterpolationParametersAtTimestamp

Calculates the indices and alpha parameter for interpolating between to elements in the array.

ElementType must be a type with a "float Timestamp;" member. InArray is a array of ElementTypes which are sorted in ascending order via the Timestamp member. InTimestamp is the query timestamp.

OutLowerIndex is populated with the index of the last element in InArray with a Timestamp less than or equal to InTimestamp. On error, this is set to INDEX_NONE OutUpperIndex is populated with the index of the first element in InArray with a Timestamp greater than InTimestamp. On error, this is set to INDEX_NONE OutAlpha is a number between 0.f and 1.f which describes the blending between the lower and upper indices. 0.f refers OutLowerIndex and 1.f to OutUpperIndex.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback