UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MelScale.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "HAL/Platform.h"
8
9namespace Audio
10{
13
16
19 {
20 EqualAmplitude, //< Useful when working on magnitude spectrum
21 EqualEuclideanNorm, //< Scale energy by euclidean norm. Good when using magnitude spectrum.
22 EqualEnergy //< Useful when working on power spectrum
23 };
24
28 {
29 int32 NumBands; //< Number of bands in Mel spectrum
30 float KernelMinCenterFreq; //< Minimum frequency of lowest mel band.
31 float KernelMaxCenterFreq; //< Maximum frequency of highest mel band.
32 EMelNormalization Normalization; //< Mel band scaling. EqualAmplitude is better for the magnitude spectrum, while EqualEnergy is better for the power spectrum.
33 float BandWidthStretch; //< Controls the wideness of each band.
34
42 };
43
45}
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint8_t uint8
Definition binka_ue_file_header.h:8
Definition UniquePtr.h:107
NO_LOGGING.
Definition AudioMixerPlatformAndroid.cpp:53
EMelNormalization
Definition MelScale.h:19
float MelToHz(float InMel)
Definition MelScale.cpp:53
TUniquePtr< FContiguousSparse2DKernelTransform > NewMelSpectrumKernelTransform(const FMelSpectrumKernelSettings &InSettings, const int32 InFFTSize, const float InSampleRate)
Definition MelScale.cpp:61
float HzToMel(float InHz)
Definition MelScale.cpp:57
Definition MelScale.h:28
float KernelMaxCenterFreq
Definition MelScale.h:31
FMelSpectrumKernelSettings()
Definition MelScale.h:35
int32 NumBands
Definition MelScale.h:29
float BandWidthStretch
Definition MelScale.h:33
float KernelMinCenterFreq
Definition MelScale.h:30
EMelNormalization Normalization
Definition MelScale.h:32