Cog/Audio/Visualization/cqt.h
Christopher Snowhill 024e36963a CQT Experiment: Tossed in a branch for later
This experiment with Constant Q Transform was interesting, and it's nice
to see that it actually functions, but it's just too damn slow to really
be useful for visualization purposes. It uses nearly a full core on an
M1 processor, and I'd hate to see what it does on an Intel machine.
Stashing this in a branch and discarding it from the main tree, in case
somebody finds this code useful some day.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-05-21 21:50:30 -07:00

23 lines
323 B
C

//
// cqt.h
// CogAudio Framework
//
// Created by Christopher Snowhill on 5/21/22.
//
#ifndef cqt_h
#define cqt_h
#ifdef __cplusplus
extern "C" {
#endif
void cqt_calculate(const float *data, const float sampleRate, float *freq, int samples_in);
void cqt_free(void);
#ifdef __cplusplus
}
#endif
#endif /* cqt_h */