From c80519e65e84d06fa237921a6a128b2e1f55c6b3 Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Tue, 20 Aug 2019 23:41:33 -0500 Subject: [PATCH] Allow playing muted pattern in the piano roll (#5134) --- src/tracks/InstrumentTrack.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tracks/InstrumentTrack.cpp b/src/tracks/InstrumentTrack.cpp index 931e3d327..730ab97bd 100644 --- a/src/tracks/InstrumentTrack.cpp +++ b/src/tracks/InstrumentTrack.cpp @@ -652,8 +652,11 @@ bool InstrumentTrack::play( const MidiTime & _start, const fpp_t _frames, for( tcoVector::Iterator it = tcos.begin(); it != tcos.end(); ++it ) { Pattern* p = dynamic_cast( *it ); - // everything which is not a pattern or muted won't be played - if( p == NULL || ( *it )->isMuted() ) + // everything which is not a pattern won't be played + // A pattern playing in the Piano Roll window will always play + if(p == NULL || + (Engine::getSong()->playMode() != Song::Mode_PlayPattern + && (*it)->isMuted())) { continue; }