projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea6b44
)
fix placement of black/white note lines/bars in MIDI streamview
author
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 24 Oct 2013 21:11:07 +0000
(17:11 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 24 Oct 2013 21:11:07 +0000
(17:11 -0400)
gtk2_ardour/midi_streamview.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/midi_streamview.cc
b/gtk2_ardour/midi_streamview.cc
index f192607da4ff1196d7e938f5ce321477f9f521b5..6072f8823420507ff7f217432b40286b928cf3f1 100644
(file)
--- a/
gtk2_ardour/midi_streamview.cc
+++ b/
gtk2_ardour/midi_streamview.cc
@@
-301,7
+301,7
@@
MidiStreamView::draw_note_lines()
for (int i = highest_note(); i >= lowest_note(); --i) {
- y =
floor (note_to_y(i)
);
+ y =
note_to_y (i
);
/* this is the line actually corresponding to the division
* between notes
@@
-328,7
+328,7
@@
MidiStreamView::draw_note_lines()
double h = y - prev_y;
double mid = y + (h/2.0);
-
+
if (height > 1.0) {
_note_lines->add (mid, h, color);
}