From 66da544cebc0897066ea12db87c3557b2351962f Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 9 Mar 2014 22:40:02 +0100 Subject: [PATCH] PianoRoll: don't play test notes while recording This is a partial revert of 2e799718d621133103222e9d119d9443158ac4be. As playing test notes generate MIDI events as well, they get recorded like any other notes resulting in undesired behaviour. Closes #368. --- src/gui/piano_roll.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index 3d5c6e61c..966e199de 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1859,7 +1859,7 @@ void pianoRoll::testPlayNote( note * n ) { m_lastKey = n->key(); - //if( ! n->isPlaying() && ! m_recording && ! engine::getSong()->isPlaying() ) + if( n->isPlaying() == false && m_recording == false ) { n->setIsPlaying( true ); m_pattern->instrumentTrack()->pianoModel()->handleKeyPress( n->key(), n->midiVelocity() );