From 2e799718d621133103222e9d119d9443158ac4be Mon Sep 17 00:00:00 2001 From: Vesa Date: Wed, 19 Feb 2014 22:54:18 +0200 Subject: [PATCH] Allow piano roll playing while playing, fixes #21 --- src/gui/piano_roll.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/piano_roll.cpp b/src/gui/piano_roll.cpp index a545df3c0..d1080546e 100644 --- a/src/gui/piano_roll.cpp +++ b/src/gui/piano_roll.cpp @@ -1804,7 +1804,7 @@ void pianoRoll::mousePressEvent( QMouseEvent * _me ) { // left click - play the note m_lastKey = key_num; - if( ! m_recording && ! engine::getSong()->isPlaying() ) + //if( ! m_recording && ! engine::getSong()->isPlaying() ) { int v = ( (float) x ) / ( (float) WHITE_KEY_WIDTH ) * MidiMaxVelocity; m_pattern->instrumentTrack()->pianoModel()->handleKeyPress( key_num, v ); @@ -1857,7 +1857,7 @@ void pianoRoll::testPlayNote( note * n ) { m_lastKey = n->key(); - if( ! n->isPlaying() && ! m_recording && ! engine::getSong()->isPlaying() ) + //if( ! n->isPlaying() && ! m_recording && ! engine::getSong()->isPlaying() ) { n->setIsPlaying( true ); m_pattern->instrumentTrack()->pianoModel()->handleKeyPress( n->key(), volumeToMidi( n->getVolume() ) );