From 3d6eaa8afb444d064c6568e94f1483394e5a9600 Mon Sep 17 00:00:00 2001 From: SeeLook <seelook@gmail.com> Date: Sat, 17 Sep 2016 17:24:20 +0200 Subject: [PATCH] Using pause sniffing for answering melodies as such as for playing single notes, pitch detection is not stopped - it avoids to capture sounding previous note at the beginning of next melody --- src/exam/texamexecutor.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/exam/texamexecutor.cpp b/src/exam/texamexecutor.cpp index e02ab2a6e..b740c17e1 100755 --- a/src/exam/texamexecutor.cpp +++ b/src/exam/texamexecutor.cpp @@ -528,10 +528,7 @@ void TexamExecutor::checkAnswer(bool showResults) { m_penalty->stopQuestionTime(); mW->bar->setAfterAnswer(); if (curQ->answerAsSound()) { - if (m_exam->melodies()) - mW->sound->wait(); // flush buffers after captured melody - else - mW->sound->pauseSinffing(); // but only skip detected for single sound + mW->sound->pauseSinffing(); // but only skip detected for single sound mW->score->selectNote(-1); disconnect(mW->sound, &Tsound::plaingFinished, this, &TexamExecutor::sniffAfterPlaying); disconnect(mW->sound, &Tsound::noteStartedEntire, this, &TexamExecutor::noteOfMelodyStarted); -- GitLab