summaryrefslogtreecommitdiff
path: root/muse2/muse/song.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-12-26 19:35:16 +0000
committerFlorian Jung <flo@windfisch.org>2011-12-26 19:35:16 +0000
commitb988a0a27bc175ce10bc8fa53ed131486813f3e7 (patch)
tree9bd59eda317e9979cffcaa0344f45120e8a6e7d2 /muse2/muse/song.cpp
parent0d8e763949e498c1baf3a2fac7b0b3a406eb0068 (diff)
merged with release_2_0
Diffstat (limited to 'muse2/muse/song.cpp')
-rw-r--r--muse2/muse/song.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/muse2/muse/song.cpp b/muse2/muse/song.cpp
index 36be50a0..8b8f6e15 100644
--- a/muse2/muse/song.cpp
+++ b/muse2/muse/song.cpp
@@ -512,13 +512,15 @@ void Song::remapPortDrumCtrlEvents(int mapidx, int newnote, int newchan, int new
{
MidiPart* part = (MidiPart*)(ip->second);
const EventList* el = part->cevents();
- unsigned len = part->lenTick();
+ // unsigned len = part->lenTick(); // unneeded, see below.
for(ciEvent ie = el->begin(); ie != el->end(); ++ie)
{
const Event& ev = ie->second;
// Added by T356. Do not handle events which are past the end of the part.
- if(ev.tick() >= len)
- break;
+ // Commented out by flo: yes, DO handle them! these are "hidden events"
+ // which may be revealed later again!
+ // if(ev.tick() >= len)
+ // break;
if(ev.type() != Controller)
continue;