summaryrefslogtreecommitdiff
path: root/muse2
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-05-23 16:37:26 +0000
committerFlorian Jung <flo@windfisch.org>2011-05-23 16:37:26 +0000
commit69427576250f7fcfdf0e1fb28658790f4b2077bb (patch)
treebed4da9be7b5913213290a34691e3ec1c19d0186 /muse2
parent44a5f5d8805449c008924cca65c16837245825e0 (diff)
corrected reversed contollers in part canvas (cakewalk mode)
Diffstat (limited to 'muse2')
-rw-r--r--muse2/muse/arranger/pcanvas.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/muse2/muse/arranger/pcanvas.cpp b/muse2/muse/arranger/pcanvas.cpp
index daaf2d28..9b0a65b9 100644
--- a/muse2/muse/arranger/pcanvas.cpp
+++ b/muse2/muse/arranger/pcanvas.cpp
@@ -1730,7 +1730,7 @@ void PartCanvas::drawMidiPart(QPainter& p, const QRect&, EventList* events, Midi
int hoffset = (mt->height() - th ) / 2; // offset from bottom
if (ctrl_type == CTRL_PITCH)
- p.drawLine(t, hoffset + r.y() + th/2, t, hoffset + r.y() + val*th/8192/2 + th/2);
+ p.drawLine(t, hoffset + r.y() + th/2, t, hoffset + r.y() - val*th/8192/2 + th/2);
}
}
@@ -1747,7 +1747,7 @@ void PartCanvas::drawMidiPart(QPainter& p, const QRect&, EventList* events, Midi
int hoffset = (mt->height() - th ) / 2; // offset from bottom
if (ctrl_type == 10)
- p.drawLine(t, hoffset + r.y() + val*th/127, t, hoffset + r.y() + th);
+ p.drawLine(t, hoffset + r.y() + th - val*th/127, t, hoffset + r.y() + th);
}
}
@@ -1764,7 +1764,7 @@ void PartCanvas::drawMidiPart(QPainter& p, const QRect&, EventList* events, Midi
int hoffset = (mt->height() - th ) / 2; // offset from bottom
if (ctrl_type == 7)
- p.drawLine(t, hoffset + r.y() + val*th/127, t, hoffset + r.y() + th);
+ p.drawLine(t, hoffset + r.y() + th - val*th/127, t, hoffset + r.y() + th);
}
}