view AutocorrelationProcessor.h @ 33:a824d7d14eb9

Clamp band boundaries to block size
author Chris Cannam
date Thu, 04 Sep 2014 10:40:31 +0100
parents 723af5b3303a
children 4cf2d163127b
line wrap: on
line source
//
//  AutocorrelationProcessor.h
//  Tempogram
//
//  Created by Carl Bussey on 20/08/2014.
//  Copyright (c) 2014 Carl Bussey. All rights reserved.
//

#ifndef __Tempogram__Autocorrelation__
#define __Tempogram__Autocorrelation__

#include <iostream>
#include <vector>

typedef std::vector< std::vector<float> > AutoCorrelation;

class AutocorrelationProcessor{
public:
    AutocorrelationProcessor(const size_t &windowLength, const unsigned int &hopSize);
    ~AutocorrelationProcessor();
    AutoCorrelation process(float * input, const size_t &inputLength) const;
private:
    size_t m_windowLength;
    unsigned int m_hopSize;
};

#endif /* defined(__Tempogram__Autocorrelation__) */