Mercurial > hg > drum-timing-analyser
comparison DrumTimingLoader_OF/ofxAudioFileLoader/LoadedAudioHolder.cpp @ 2:50ba55abea8c
updating files to newer version
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Sat, 23 Nov 2013 15:49:27 +0000 |
parents | 82352cfc0b23 |
children |
comparison
equal
deleted
inserted
replaced
1:106bc2d4f702 | 2:50ba55abea8c |
---|---|
43 } | 43 } |
44 | 44 |
45 void LoadedAudioHolder::copyOnsetTimes(){ | 45 void LoadedAudioHolder::copyOnsetTimes(){ |
46 | 46 |
47 onsetTimesMillis.clear(); | 47 onsetTimesMillis.clear(); |
48 onsetTimesFrames.clear(); | |
48 | 49 |
49 for (int i = 0;i < fileLoader.onsetDetect.chromaOnsets.size();i++) | 50 for (int i = 0;i < fileLoader.onsetDetect.chromaOnsets.size();i++){ |
50 onsetTimesMillis.push_back(fileLoader.onsetDetect.chromaOnsets[i].millisTime); | 51 onsetTimesMillis.push_back(fileLoader.onsetDetect.chromaOnsets[i].millisTime); |
52 onsetTimesFrames.push_back(fileLoader.onsetDetect.chromaOnsets[i].frameTime); | |
53 } | |
51 | 54 |
52 } | 55 } |
53 | 56 |
54 void LoadedAudioHolder::setTrackType(const int& i){ | 57 void LoadedAudioHolder::setTrackType(const int& i){ |
55 fileLoader.onsetDetect.trackType = i; | 58 fileLoader.onsetDetect.trackType = i; |