Allow piano roll playing while playing, fixes #21

This commit is contained in:
Vesa
2014-02-19 22:54:18 +02:00
parent 2049e00901
commit 2e799718d6

View File

@@ -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() ) );