Mercurial > hg > precise-onset-detection
annotate src/BeatAnnotations.h @ 8:184a7c232049 tip
changed files since updating computer
author | Venetian |
---|---|
date | Thu, 14 Aug 2014 17:53:57 +0100 |
parents | 1e636a3511fb |
children |
rev | line source |
---|---|
andrew@5 | 1 /* |
andrew@5 | 2 * BeatAnnotations.h |
andrew@5 | 3 * BeatAnnotationViewer |
andrew@5 | 4 * |
andrew@5 | 5 * Created by Andrew on 31/10/2013. |
andrew@5 | 6 * Copyright 2013 QMUL. All rights reserved. |
andrew@5 | 7 * |
andrew@5 | 8 */ |
andrew@5 | 9 |
andrew@5 | 10 |
andrew@5 | 11 |
andrew@5 | 12 #ifndef BEAT_ANNOTATIONS_H |
andrew@5 | 13 #define BEAT_ANNOTATIONS_H |
andrew@5 | 14 |
andrew@5 | 15 |
andrew@5 | 16 #define FRAMESIZE 512 |
andrew@5 | 17 #include "NoteDataReader.h" |
andrew@5 | 18 |
andrew@5 | 19 class BeatAnnotations{ |
andrew@5 | 20 public: |
andrew@5 | 21 BeatAnnotations(); |
andrew@5 | 22 |
andrew@5 | 23 void draw(); |
andrew@5 | 24 |
andrew@5 | 25 void loadBeatsFromAnnotations(std::string filename); |
andrew@5 | 26 int processAudioForBeatTimes(std::string audiofile); |
andrew@5 | 27 |
andrew@5 | 28 //vars |
andrew@5 | 29 typedef std::vector<double> DoubleVector; |
andrew@5 | 30 DoubleVector beatTimes;///beats in seconds |
andrew@5 | 31 NoteDataReader reader; |
andrew@5 | 32 }; |
andrew@5 | 33 #endif |