Allow playing muted pattern in the piano roll (#5134)
This commit is contained in:
committed by
Hyunjin Song
parent
ce5c74432e
commit
c80519e65e
@@ -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<Pattern*>( *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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user