Mercurial > hg > qm-dsp
diff dsp/tonal/TCSgram.h @ 505:930b5b0f707d
Merge branch 'codestyle-and-tidy'
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Wed, 05 Jun 2019 12:55:15 +0100 |
parents | 701233f8ed41 |
children |
line wrap: on
line diff
--- a/dsp/tonal/TCSgram.h Thu May 30 16:18:13 2019 +0100 +++ b/dsp/tonal/TCSgram.h Wed Jun 05 12:55:15 2019 +0100 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _TCSGram_ -#define _TCSGram_ +#ifndef QM_DSP_TCSGRAM_H +#define QM_DSP_TCSGRAM_H #include <vector> #include <valarray> @@ -26,24 +26,28 @@ class TCSGram { -public: - TCSGram(); - ~TCSGram(); - void getTCSVector(int, TCSVector&) const; - void addTCSVector(const TCSVector&); - long getTime(size_t) const; - long getDuration() const; - void printDebug(); - int getSize() const { return m_VectorList.size(); } - void reserve(size_t uSize) { m_VectorList.reserve(uSize); } - void clear() { m_VectorList.clear(); } - void setFrameDuration(const double dFrameDurationMS) { m_dFrameDurationMS = dFrameDurationMS; } - void setNumBins(const unsigned int uNumBins) { m_uNumBins = uNumBins; } - void normalize(); +public: + TCSGram(); + ~TCSGram(); + void getTCSVector(int, TCSVector&) const; + void addTCSVector(const TCSVector&); + long getTime(size_t) const; + long getDuration() const; + void printDebug(); + int getSize() const { return m_VectorList.size(); } + void reserve(size_t uSize) { m_VectorList.reserve(uSize); } + void clear() { m_VectorList.clear(); } + void setFrameDuration(const double dFrameDurationMS) { + m_dFrameDurationMS = dFrameDurationMS; + } + void setNumBins(const unsigned int uNumBins) { + m_uNumBins = uNumBins; + } + void normalize(); protected: - vectorlist_t m_VectorList; - unsigned int m_uNumBins; - double m_dFrameDurationMS; + vectorlist_t m_VectorList; + unsigned int m_uNumBins; + double m_dFrameDurationMS; }; #endif