Skip to content

Commit

Permalink
Allow piano roll playing while playing, fixes LMMS#21
Browse files Browse the repository at this point in the history
  • Loading branch information
diizy committed Feb 19, 2014
1 parent 7daf4f7 commit b35df75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/piano_roll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -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() ) );
Expand Down

0 comments on commit b35df75

Please sign in to comment.