cannam@31: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ cannam@31: cannam@31: /* cannam@31: QM DSP Library cannam@31: cannam@31: Centre for Digital Music, Queen Mary, University of London. cannam@31: This file copyright 2008 Kurt Jacobson and QMUL. Chris@84: Chris@84: This program is free software; you can redistribute it and/or Chris@84: modify it under the terms of the GNU General Public License as Chris@84: published by the Free Software Foundation; either version 2 of the Chris@84: License, or (at your option) any later version. See the file Chris@84: COPYING included with this distribution for more information. cannam@31: */ cannam@31: cannam@31: #ifndef BEATSPECTRUM_H cannam@31: #define BEATSPECTRUM_H cannam@31: cannam@31: #include cannam@31: cannam@31: /** cannam@31: * Given a matrix of "feature values", calculate a self-similarity cannam@31: * vector. The resulting vector will have half as many elements as cannam@31: * the number of columns in the matrix. This is based on the cannam@31: * SoundBite rhythmic similarity code. cannam@31: */ cannam@31: cannam@31: class BeatSpectrum cannam@31: { cannam@31: public: cannam@32: BeatSpectrum() { } cannam@32: ~BeatSpectrum() { } cannam@31: cannam@31: std::vector process(const std::vector > &inmatrix); cannam@31: cannam@31: }; cannam@31: cannam@31: #endif cannam@31: cannam@31: