Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 591:0946feb81b79 sonification
Add playExampleNote route through view manager out to the audio play source
author | Chris Cannam |
---|---|
date | Fri, 24 Jun 2011 16:42:48 +0100 |
parents | 4806715f7a19 |
children | 5fa210337bee |
comparison
equal
deleted
inserted
replaced
590:241929c5d57c | 591:0946feb81b79 |
---|---|
188 { | 188 { |
189 if (!m_playbackModel) return frame; | 189 if (!m_playbackModel) return frame; |
190 else return m_playbackModel->alignFromReference(frame); | 190 else return m_playbackModel->alignFromReference(frame); |
191 } | 191 } |
192 | 192 |
193 void | |
194 ViewManager::playExampleNote(int midiPitch) | |
195 { | |
196 m_playSource->queueExampleNote(midiPitch); | |
197 } | |
198 | |
193 bool | 199 bool |
194 ViewManager::haveInProgressSelection() const | 200 ViewManager::haveInProgressSelection() const |
195 { | 201 { |
196 return !m_inProgressSelection.isEmpty(); | 202 return !m_inProgressSelection.isEmpty(); |
197 } | 203 } |