From 13e17496dcfe46723b67a322159d8486cd92b650 Mon Sep 17 00:00:00 2001 From: merrickclay <55554300+merrickclay@users.noreply.github.com> Date: Mon, 27 Dec 2021 19:12:26 -0700 Subject: [PATCH] Updates PianoRoll to immediately reflect note changes in BBEditor (#6242) --- src/gui/editors/PianoRoll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index 22cc09f3a..f1b39e9da 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -845,6 +845,7 @@ void PianoRoll::setCurrentPattern( Pattern* newPattern ) if( hasValidPattern() ) { m_pattern->instrumentTrack()->disconnect( this ); + m_pattern->disconnect(this); } // force the song-editor to stop playing if it played pattern before @@ -905,6 +906,7 @@ void PianoRoll::setCurrentPattern( Pattern* newPattern ) connect( m_pattern->instrumentTrack(), SIGNAL( midiNoteOn( const Note& ) ), this, SLOT( startRecordNote( const Note& ) ) ); connect( m_pattern->instrumentTrack(), SIGNAL( midiNoteOff( const Note& ) ), this, SLOT( finishRecordNote( const Note& ) ) ); + connect( m_pattern, SIGNAL(dataChanged()), this, SLOT(update())); connect( m_pattern->instrumentTrack()->pianoModel(), SIGNAL( dataChanged() ), this, SLOT( update() ) ); connect(m_pattern->instrumentTrack()->firstKeyModel(), SIGNAL(dataChanged()), this, SLOT(update()));