Mercurial > hg > qm-dsp
comparison dsp/tonal/TCSgram.h @ 482:cbe668c7d724
Untabify, indent, tidy
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 31 May 2019 11:02:28 +0100 |
parents | d5014ab8b0e5 |
children | 701233f8ed41 |
comparison
equal
deleted
inserted
replaced
481:de5f557a270f | 482:cbe668c7d724 |
---|---|
24 | 24 |
25 typedef std::vector<std::pair<long, TCSVector> > vectorlist_t; | 25 typedef std::vector<std::pair<long, TCSVector> > vectorlist_t; |
26 | 26 |
27 class TCSGram | 27 class TCSGram |
28 { | 28 { |
29 public: | 29 public: |
30 TCSGram(); | 30 TCSGram(); |
31 ~TCSGram(); | 31 ~TCSGram(); |
32 void getTCSVector(int, TCSVector&) const; | 32 void getTCSVector(int, TCSVector&) const; |
33 void addTCSVector(const TCSVector&); | 33 void addTCSVector(const TCSVector&); |
34 long getTime(size_t) const; | 34 long getTime(size_t) const; |
35 long getDuration() const; | 35 long getDuration() const; |
36 void printDebug(); | 36 void printDebug(); |
37 int getSize() const { return m_VectorList.size(); } | 37 int getSize() const { return m_VectorList.size(); } |
38 void reserve(size_t uSize) { m_VectorList.reserve(uSize); } | 38 void reserve(size_t uSize) { m_VectorList.reserve(uSize); } |
39 void clear() { m_VectorList.clear(); } | 39 void clear() { m_VectorList.clear(); } |
40 void setFrameDuration(const double dFrameDurationMS) { m_dFrameDurationMS = dFrameDurationMS; } | 40 void setFrameDuration(const double dFrameDurationMS) { |
41 void setNumBins(const unsigned int uNumBins) { m_uNumBins = uNumBins; } | 41 m_dFrameDurationMS = dFrameDurationMS; |
42 void normalize(); | 42 } |
43 void setNumBins(const unsigned int uNumBins) { | |
44 m_uNumBins = uNumBins; | |
45 } | |
46 void normalize(); | |
43 protected: | 47 protected: |
44 vectorlist_t m_VectorList; | 48 vectorlist_t m_VectorList; |
45 unsigned int m_uNumBins; | 49 unsigned int m_uNumBins; |
46 double m_dFrameDurationMS; | 50 double m_dFrameDurationMS; |
47 }; | 51 }; |
48 | 52 |
49 #endif | 53 #endif |