diff options
author | Florian Jung <flo@windfisch.org> | 2011-10-08 14:10:24 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-10-08 14:10:24 +0000 |
commit | 9e6dc222b92bbfba58756d3be47890dd885b8f71 (patch) | |
tree | 4f9ade42505b2e30b03b6cf3c00a9971349de16a /muse2/muse/midi.cpp | |
parent | a347445db32f51562aee5c6a786c312d1f612d2f (diff) |
muted instruments in new style drum tracks are now respected
Diffstat (limited to 'muse2/muse/midi.cpp')
-rw-r--r-- | muse2/muse/midi.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/muse2/muse/midi.cpp b/muse2/muse/midi.cpp index e927674f..65bccc70 100644 --- a/muse2/muse/midi.cpp +++ b/muse2/muse/midi.cpp @@ -730,12 +730,18 @@ void Audio::collectEvents(MusECore::MidiTrack* track, unsigned int cts, unsigned // if (ev.type() == Meta) continue; - if (track->type() == Track::DRUM) { //FINDMICHJETZT ignore muted + if (track->type() == Track::DRUM) { int instr = ev.pitch(); // ignore muted drums if (ev.isNote() && MusEGlobal::drumMap[instr].mute) continue; } + else if (track->type() == Track::NEW_DRUM) { + int instr = ev.pitch(); + // ignore muted drums + if (ev.isNote() && track->drummap()[instr].mute) + continue; + } unsigned tick = ev.tick() + offset; unsigned frame = MusEGlobal::tempomap.tick2frame(tick) + frameOffset; switch (ev.type()) { |