andrew@5: /* andrew@5: * BeatAnnotations.h andrew@5: * BeatAnnotationViewer andrew@5: * andrew@5: * Created by Andrew on 31/10/2013. andrew@5: * Copyright 2013 QMUL. All rights reserved. andrew@5: * andrew@5: */ andrew@5: andrew@5: andrew@5: andrew@5: #ifndef BEAT_ANNOTATIONS_H andrew@5: #define BEAT_ANNOTATIONS_H andrew@5: andrew@5: andrew@5: #define FRAMESIZE 512 andrew@5: #include "NoteDataReader.h" andrew@5: andrew@5: class BeatAnnotations{ andrew@5: public: andrew@5: BeatAnnotations(); andrew@5: andrew@5: void draw(); andrew@5: andrew@5: void loadBeatsFromAnnotations(std::string filename); andrew@5: int processAudioForBeatTimes(std::string audiofile); andrew@5: andrew@5: //vars andrew@5: typedef std::vector DoubleVector; andrew@5: DoubleVector beatTimes;///beats in seconds andrew@5: NoteDataReader reader; andrew@5: }; andrew@5: #endif