Mercurial > hg > multitrack-audio-matcher
diff src/RecordedMultitrackAudio.cpp @ 9:bc62266af280
Position scrolls with live input by updating the play position of onset detection to where the current best match is
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 03 Feb 2012 17:53:14 +0000 |
parents | 33dedfe32893 |
children | cbadb9d05d29 |
line wrap: on
line diff
--- a/src/RecordedMultitrackAudio.cpp Fri Feb 03 13:28:59 2012 +0000 +++ b/src/RecordedMultitrackAudio.cpp Fri Feb 03 17:53:14 2012 +0000 @@ -81,7 +81,10 @@ loadedAudioFiles[i].updateToPlayPosition(); } - +void RecordedMultitrackAudio::updatePositionToMillis(const double& millis){ + for (int i = 0;i < numberOfAudioTracks;i++) + loadedAudioFiles[i].updateToMillisPosition(millis); +} void RecordedMultitrackAudio::switchScreens(){ for (int i = 0;i < numberOfAudioTracks;i++)