From 9b6612c396a211f08747dccaeeca0ff1d7fbbb34 Mon Sep 17 00:00:00 2001 From: Lukas W Date: Thu, 11 Dec 2014 10:38:04 +0100 Subject: [PATCH] PianoRoll rename fix --- src/gui/editors/PianoRoll.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 982d4e003..2e4fbe547 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -3347,24 +3347,22 @@ void PianoRoll::stop() void PianoRoll::startRecordNote(const Note & n ) { - if( m_recording == true && hasValidPattern() == true && - Engine::getSong()->isPlaying() && - ( Engine::getSong()->playMode() == - desiredPlayModeForAccompany() || - Engine::getSong()->playMode() == - Song::Mode_PlayPattern ) ) + if(m_recording && hasValidPattern() && + Engine::getSong()->isPlaying() && + (Engine::getSong()->playMode() == desiredPlayModeForAccompany() || + Engine::getSong()->playMode() == Song::Mode_PlayPattern )) { MidiTime sub; if( Engine::getSong()->playMode() == Song::Mode_PlaySong ) { sub = m_pattern->startPosition(); } - Note n( 1, Engine::getSong()->getPlayPos( + Note n1( 1, Engine::getSong()->getPlayPos( Engine::getSong()->playMode() ) - sub, n.key(), n.getVolume(), n.getPanning() ); - if( n.pos() >= 0 ) + if( n1.pos() >= 0 ) { - m_recordingNotes << n; + m_recordingNotes << n1; } } }