annotate dsp/rhythm/BeatSpectrum.h @ 172:17a7d6bb9af6

Construct a currently-failing test on exact frequency in resampler (tracking down error in CQ)
author Chris Cannam
date Sat, 10 May 2014 13:41:06 +0100
parents e5907ae6de17
children 701233f8ed41
rev   line source
cannam@31 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
cannam@31 2
cannam@31 3 /*
cannam@31 4 QM DSP Library
cannam@31 5
cannam@31 6 Centre for Digital Music, Queen Mary, University of London.
cannam@31 7 This file copyright 2008 Kurt Jacobson and QMUL.
Chris@84 8
Chris@84 9 This program is free software; you can redistribute it and/or
Chris@84 10 modify it under the terms of the GNU General Public License as
Chris@84 11 published by the Free Software Foundation; either version 2 of the
Chris@84 12 License, or (at your option) any later version. See the file
Chris@84 13 COPYING included with this distribution for more information.
cannam@31 14 */
cannam@31 15
cannam@31 16 #ifndef BEATSPECTRUM_H
cannam@31 17 #define BEATSPECTRUM_H
cannam@31 18
cannam@31 19 #include <vector>
cannam@31 20
cannam@31 21 /**
cannam@31 22 * Given a matrix of "feature values", calculate a self-similarity
cannam@31 23 * vector. The resulting vector will have half as many elements as
cannam@31 24 * the number of columns in the matrix. This is based on the
cannam@31 25 * SoundBite rhythmic similarity code.
cannam@31 26 */
cannam@31 27
cannam@31 28 class BeatSpectrum
cannam@31 29 {
cannam@31 30 public:
cannam@32 31 BeatSpectrum() { }
cannam@32 32 ~BeatSpectrum() { }
cannam@31 33
cannam@31 34 std::vector<double> process(const std::vector<std::vector<double> > &inmatrix);
cannam@31 35
cannam@31 36 };
cannam@31 37
cannam@31 38 #endif
cannam@31 39
cannam@31 40