Mercurial > hg > multitrack-audio-matcher
comparison 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 |
comparison
equal
deleted
inserted
replaced
8:572564b7cb85 | 9:bc62266af280 |
---|---|
79 void RecordedMultitrackAudio::updatePosition(){ | 79 void RecordedMultitrackAudio::updatePosition(){ |
80 for (int i = 0;i < numberOfAudioTracks;i++) | 80 for (int i = 0;i < numberOfAudioTracks;i++) |
81 loadedAudioFiles[i].updateToPlayPosition(); | 81 loadedAudioFiles[i].updateToPlayPosition(); |
82 } | 82 } |
83 | 83 |
84 | 84 void RecordedMultitrackAudio::updatePositionToMillis(const double& millis){ |
85 for (int i = 0;i < numberOfAudioTracks;i++) | |
86 loadedAudioFiles[i].updateToMillisPosition(millis); | |
87 } | |
85 | 88 |
86 void RecordedMultitrackAudio::switchScreens(){ | 89 void RecordedMultitrackAudio::switchScreens(){ |
87 for (int i = 0;i < numberOfAudioTracks;i++) | 90 for (int i = 0;i < numberOfAudioTracks;i++) |
88 loadedAudioFiles[i].switchScreens(); | 91 loadedAudioFiles[i].switchScreens(); |
89 } | 92 } |