Mercurial > hg > precise-onset-detection
annotate src/BeatWriter.h @ 8:184a7c232049 tip
changed files since updating computer
author | Venetian |
---|---|
date | Thu, 14 Aug 2014 17:53:57 +0100 |
parents | 7ec1ed0b2eb0 |
children |
rev | line source |
---|---|
andrew@2 | 1 /* |
andrew@2 | 2 * BeatWriter.h |
andrew@2 | 3 * BTrack |
andrew@2 | 4 * |
andrew@2 | 5 * Created by Andrew on 31/10/2013. |
andrew@2 | 6 * Copyright 2013 QMUL. All rights reserved. |
andrew@2 | 7 * |
andrew@2 | 8 */ |
andrew@2 | 9 |
andrew@2 | 10 /* |
andrew@2 | 11 * BeatWriter.h |
andrew@2 | 12 * MultipleAudioMathcher |
andrew@2 | 13 * |
andrew@2 | 14 * Created by Andrew on 25/04/2012. |
andrew@2 | 15 * Copyright 2012 QMUL. All rights reserved. |
andrew@2 | 16 * |
andrew@2 | 17 */ |
andrew@2 | 18 |
andrew@2 | 19 |
andrew@2 | 20 |
andrew@2 | 21 |
andrew@2 | 22 #ifndef BEAT_WRITER_H |
andrew@2 | 23 #define BEAT_WRITER_H |
andrew@2 | 24 |
andrew@2 | 25 |
andrew@2 | 26 // basic file operations for text file stuff |
andrew@2 | 27 #include <iostream> |
andrew@2 | 28 #include <fstream> |
andrew@2 | 29 using namespace std; |
andrew@2 | 30 |
andrew@2 | 31 class BeatWriter{ |
andrew@2 | 32 |
andrew@2 | 33 public: |
andrew@2 | 34 BeatWriter(); |
andrew@2 | 35 ~BeatWriter(); |
andrew@2 | 36 |
andrew@2 | 37 std::string filepath; |
andrew@2 | 38 ofstream outputFile; |
andrew@2 | 39 |
andrew@2 | 40 void openFile(); |
andrew@2 | 41 void openFile(std::string pathname); |
andrew@2 | 42 void closeFile(); |
andrew@2 | 43 void writeBeatTime(const double& beatTime); |
andrew@2 | 44 |
andrew@2 | 45 }; |
andrew@2 | 46 #endif |