Mercurial > hg > drum-timing-analyser
comparison DrumTimingLoader_OF/ofxAudioFileLoader/ofxSoundFileLoader.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 |
---|---|
25 // printf("file loader delete onset detect\n"); | 25 // printf("file loader delete onset detect\n"); |
26 | 26 |
27 } | 27 } |
28 | 28 |
29 void ofxSoundFileLoader::updateToAudioPosition(const float& audioPosition){ | 29 void ofxSoundFileLoader::updateToAudioPosition(const float& audioPosition){ |
30 | 30 //updates info on file as it plays |
31 audioHolder.playPosition = audioPosition * audioHolder.audioVector.size(); | 31 audioHolder.playPosition = audioPosition * audioHolder.length;//size(); |
32 //printf("update pos %f size %i\n", audioHolder.playPosition, (int)audioHolder.audioVector.size()); | |
32 onsetDetect.playPosition = audioPosition; | 33 onsetDetect.playPosition = audioPosition; |
33 } | 34 } |
34 | 35 |
35 void ofxSoundFileLoader::updateToMillisPosition(const double& millis){ | 36 void ofxSoundFileLoader::updateToMillisPosition(const double& millis){ |
36 | 37 |