Audacity 3.2.0
MirDsp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*!********************************************************************
3
4 Audacity: A Digital Audio Editor
5
6 MirDsp.h
7
8 Matthieu Hodgkinson
9
10 DSP utilities used by the Music Information Retrieval code.
11 These may migrate to lib-math if needed elsewhere.
12
13**********************************************************************/
14
15#pragma once
16
17#include <algorithm>
18#include <functional>
19#include <vector>
20
21namespace MIR
22{
23class MirAudioReader;
24struct QuantizationFitDebugOutput;
25
35std::vector<float> GetNormalizedCircularAutocorr(const std::vector<float>& x);
36
37std::vector<float> GetOnsetDetectionFunction(
38 const MirAudioReader& audio,
39 const std::function<void(double)>& progressCallback,
40 QuantizationFitDebugOutput* debugInfo);
41} // namespace MIR
MockedAudio audio
std::vector< float > GetOnsetDetectionFunction(const MirAudioReader &audio, const std::function< void(double)> &progressCallback, QuantizationFitDebugOutput *debugOutput)
Definition: MirDsp.cpp:109
std::vector< float > GetNormalizedCircularAutocorr(const std::vector< float > &ux)
Get the normalized, circular auto-correlation for a signal x whose length already is a power of two....
Definition: MirDsp.cpp:73