From 48a4361dc66411d0edb0f92826a1fb6b0e06c386 Mon Sep 17 00:00:00 2001 From: "Tim E. Real" Date: Wed, 16 Jan 2013 07:40:29 +0000 Subject: Don't play midi parts if track is off --- muse2/ChangeLog | 1 + muse2/muse/midi.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/muse2/ChangeLog b/muse2/ChangeLog index 81329e66..77506419 100644 --- a/muse2/ChangeLog +++ b/muse2/ChangeLog @@ -11,6 +11,7 @@ TODO: Found C.O.W. bug when de-cloning a part on a duplicated Wave Track - it's still a clone. Investigating... - Fixed Old-style Drum Editor: Was not playing new notes as they were drawn. Re-wrote a DrumCanvas::newItem(), and eliminated dynamic_casts. + - Don't play midi parts if track is off. 13.01.2013: - remote should depend on widgets through #including app.h otherwise Python bindings don't compile (Orcan) 03.01.2013: diff --git a/muse2/muse/midi.cpp b/muse2/muse/midi.cpp index e5b1c62a..61053739 100644 --- a/muse2/muse/midi.cpp +++ b/muse2/muse/midi.cpp @@ -942,8 +942,8 @@ void Audio::processMidi() MidiDevice* md = MusEGlobal::midiPorts[port].device(); if(md) { - // only add track events if the track is unmuted - if(!track->isMute()) + // only add track events if the track is unmuted and turned on + if(!track->isMute() && !track->off()) { if(isPlaying() && (curTickPos < nextTickPos)) collectEvents(track, curTickPos, nextTickPos); -- cgit v1.2.3