diff options
Diffstat (limited to 'src/loris')
-rw-r--r-- | src/loris/Analyzer.C | 5 | ||||
-rw-r--r-- | src/loris/Analyzer.h | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/loris/Analyzer.C b/src/loris/Analyzer.C index 7ed7469..5b4996c 100644 --- a/src/loris/Analyzer.C +++ b/src/loris/Analyzer.C @@ -732,6 +732,11 @@ Analyzer::analyze( const double * bufBegin, const double * bufEnd, double srate, } } +void +Analyzer::analyze_peaks( const std::vector<double> & vec, double srate ) +{ + printf("analyze_peaks\n"); +} // -- parameter access -- // --------------------------------------------------------------------------- diff --git a/src/loris/Analyzer.h b/src/loris/Analyzer.h index 6bdfe52..58ece87 100644 --- a/src/loris/Analyzer.h +++ b/src/loris/Analyzer.h @@ -37,18 +37,16 @@ #include "LinearEnvelope.h" #include "Partial.h" #include "PartialList.h" -// #include "SpectralPeaks.h" +#include "SpectralPeaks.h" // begin namespace namespace Loris { class Envelope; class LinearEnvelopeBuilder; -// class Peaks; -// class Peaks::iterator; // oooo, this is nasty, need to fix it! -class SpectralPeak; -typedef std::vector< SpectralPeak > Peaks; +// class SpectralPeak; +// typedef std::vector< SpectralPeak > Peaks; // --------------------------------------------------------------------------- // class Analyzer @@ -251,6 +249,8 @@ public: //! frequency contour expected of the resulting Partials. void analyze( const double * bufBegin, const double * bufEnd, double srate, const Envelope & reference ); + + void analyze_peaks( const std::vector<double> & vec, double srate ); // -- parameter access -- |