annotate AutocorrelationProcessor.h @ 60:ac1a75151fc9 tip

isnan(int) is meaningless, and msvc refuses it as ambiguous
author Chris Cannam
date Wed, 18 Dec 2019 16:47:10 +0000
parents a908a5a56267
children
rev   line source
Chris@43 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@43 2
Chris@43 3 /*
Chris@43 4 Vamp Tempogram Plugin
Chris@43 5 Carl Bussey, Centre for Digital Music, Queen Mary University of London
Chris@43 6 Copyright 2014 Queen Mary University of London.
Chris@43 7
Chris@43 8 This program is free software; you can redistribute it and/or
Chris@43 9 modify it under the terms of the GNU General Public License as
Chris@43 10 published by the Free Software Foundation; either version 2 of the
Chris@43 11 License, or (at your option) any later version. See the file
Chris@43 12 COPYING included with this distribution for more information.
Chris@43 13 */
c@25 14
c@25 15 #ifndef __Tempogram__Autocorrelation__
c@25 16 #define __Tempogram__Autocorrelation__
c@25 17
c@25 18 #include <iostream>
c@25 19 #include <vector>
c@25 20
c@25 21 typedef std::vector< std::vector<float> > AutoCorrelation;
c@25 22
c@25 23 class AutocorrelationProcessor{
c@25 24 public:
Chris@44 25 AutocorrelationProcessor(int windowLength, int hopSize);
c@26 26 ~AutocorrelationProcessor();
Chris@44 27 AutoCorrelation process(float * input, int inputLength) const;
c@25 28 private:
Chris@44 29 int m_windowLength;
Chris@44 30 int m_hopSize;
c@25 31 };
c@25 32
c@25 33 #endif /* defined(__Tempogram__Autocorrelation__) */