From 2a1844a28e6a7f80a831057c1617fe509088784b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 2 May 2011 22:34:44 +0000 Subject: [PATCH] Fix piano roll to use the same octave numbering as the verbose canvas cursor (#4015). git-svn-id: svn://localhost/ardour2/branches/3.0@9458 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/piano_roll_header.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/piano_roll_header.cc b/gtk2_ardour/piano_roll_header.cc index 4bb8250fea..02d656d698 100644 --- a/gtk2_ardour/piano_roll_header.cc +++ b/gtk2_ardour/piano_roll_header.cc @@ -445,7 +445,7 @@ PianoRollHeader::on_expose_event (GdkEventExpose* ev) double y = floor(_view.note_to_y(i)) - 0.5f; double note_height = floor(_view.note_to_y(i - 1)) - y; - int cn = i / 12; + int cn = i / 12 - 1; s << "C" << cn; //cr->get_text_extents(s.str(), te);