Mercurial > hg > precise-onset-detection
comparison src/BeatWriter.h @ 2:7ec1ed0b2eb0
Added offline precise onset detection, outputting precise locations in seconds to text file
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Mon, 30 Dec 2013 14:08:42 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1:5a94f002e5ef | 2:7ec1ed0b2eb0 |
---|---|
1 /* | |
2 * BeatWriter.h | |
3 * BTrack | |
4 * | |
5 * Created by Andrew on 31/10/2013. | |
6 * Copyright 2013 QMUL. All rights reserved. | |
7 * | |
8 */ | |
9 | |
10 /* | |
11 * BeatWriter.h | |
12 * MultipleAudioMathcher | |
13 * | |
14 * Created by Andrew on 25/04/2012. | |
15 * Copyright 2012 QMUL. All rights reserved. | |
16 * | |
17 */ | |
18 | |
19 | |
20 | |
21 | |
22 #ifndef BEAT_WRITER_H | |
23 #define BEAT_WRITER_H | |
24 | |
25 | |
26 // basic file operations for text file stuff | |
27 #include <iostream> | |
28 #include <fstream> | |
29 using namespace std; | |
30 | |
31 class BeatWriter{ | |
32 | |
33 public: | |
34 BeatWriter(); | |
35 ~BeatWriter(); | |
36 | |
37 std::string filepath; | |
38 ofstream outputFile; | |
39 | |
40 void openFile(); | |
41 void openFile(std::string pathname); | |
42 void closeFile(); | |
43 void writeBeatTime(const double& beatTime); | |
44 | |
45 }; | |
46 #endif |