33 const float N_1 = N - 1.0f;
40 const float Denominator = 0.3f *
N_1 / 2.0f;
43 InData[i] = FMath::Exp(-0.5f * FMath::Pow((n - 0.5f *
N_1) / Denominator, 2.0f));
50 const float A = 0.5f *
N_1;
53 InData[i] = 1.0f - FMath::Abs((n -
A) /
A);
80 InData[i] = FMath::Pow((n - N + 1.0f) /
N_1, 4.0f);
98 InData[i] = 0.5f - 0.5f * FMath::Cos(2.0f *
PI * n /
N_1);
111 const int32 NextIndex = FMath::Min(NumFrames, PrevIndex + 1);
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define PI
Definition UnrealMathUtility.h:65
EEnvelope
Definition GrainEnvelope.h:16
TArray< float > FEnvelope
Definition GrainEnvelope.h:12
NO_LOGGING.
Definition AudioMixerPlatformAndroid.cpp:53
T::FDataType GetValue(const UBlackboardComponent &Blackboard, const FName &Name, FBlackboard::FKey &InOutCachedKey, const typename T::FDataType &DefaultValue)
Definition ValueOrBBKey.h:51
static constexpr UE_FORCEINLINE_HINT T Lerp(const T &A, const T &B, const U &Alpha)
Definition UnrealMathUtility.h:1116