annotate DrumTimingLoader_OF/ofxAubioOnsetDetection/FrameHolder.h @ 3:303edbbcf1bd tip

updated ofxAubioOnsetDetection file
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Sun, 24 Nov 2013 08:15:17 +0000
parents 82352cfc0b23
children
rev   line source
andrew@0 1 /*
andrew@0 2 * FrameHolder.h
andrew@0 3 * fileLoaderAndOnsetDetection
andrew@0 4 *
andrew@0 5 * Created by Andrew on 25/01/2012.
andrew@0 6 * Copyright 2012 QMUL. All rights reserved.
andrew@0 7 *
andrew@0 8 */
andrew@0 9
andrew@0 10
andrew@0 11 #ifndef FRAME_HOLDER_H
andrew@0 12 #define FRAME_HOLDER_H
andrew@0 13
andrew@0 14 #include "ofMain.h"
andrew@0 15 //#include "chromaGram.h"
andrew@0 16 //#include "AubioPitch.h"
andrew@0 17 //#include "aubio.h"
andrew@0 18
andrew@0 19 class FrameHolder {
andrew@0 20 public:
andrew@0 21 FrameHolder();
andrew@0 22
andrew@0 23 int sizeOfFrame, sizeOfFvec;
andrew@0 24 std::vector<float> frame;
andrew@0 25
andrew@0 26 void deleteFrame();
andrew@0 27 void addToFrame(float* newAudio, const int& length);
andrew@0 28
andrew@0 29 bool sizeEquals(const int& length);
andrew@0 30
andrew@0 31 int frameCounter;
andrew@0 32 //_fvec_t aubioFvec;
andrew@0 33 // fvec_t *vec;
andrew@0 34
andrew@0 35 /*
andrew@0 36 struct _fvec_t {
andrew@0 37 ba_uint_t length; /**< length of buffer
andrew@0 38 ba_uint_t channels; /**< number of channels
andrew@0 39 smpl_t **data; /**< data array of size [length] * [channels]
andrew@0 40 */
andrew@0 41
andrew@0 42 };
andrew@0 43 #endif
andrew@0 44