std1.0.0-beta-7 SafeC docs

std :: dsp::stft

Function std::mr_stft_loss

#include <std/dsp/stft.h> source ยท definition

double mr_stft_loss([]const double x, []const double y, []const unsigned long frameSizes)

Multi-resolution STFT loss between signals x and y (same length 'len'). 'frameSizes' is an array of 'numResolutions' power-of-two frame sizes; each resolution uses a Hann window with hop = frameSize/4 (the standard convention in the MR-STFT loss literature). Lower is more similar; 0 for identical signals.