comparison layer/PianoScale.cpp @ 1471:f2525e6cbdf1 by-id

More layer updates
author Chris Cannam
date Mon, 01 Jul 2019 14:17:13 +0100
parents b4cb11ca8233
children
comparison
equal deleted inserted replaced
1470:696e569ff21b 1471:f2525e6cbdf1
56 if (n == 1) { 56 if (n == 1) {
57 // C# -- fill the C from here 57 // C# -- fill the C from here
58 QColor col = Qt::gray; 58 QColor col = Qt::gray;
59 if (i == 61) { // filling middle C 59 if (i == 61) { // filling middle C
60 col = Qt::blue; 60 col = Qt::blue;
61 col = col.light(150); 61 col = col.lighter(150);
62 } 62 }
63 if (ppy - y > 2) { 63 if (ppy - y > 2) {
64 paint.fillRect(x0 + 1, 64 paint.fillRect(x0 + 1,
65 y, 65 y,
66 x1 - x0, 66 x1 - x0,
127 if (n == 1) { 127 if (n == 1) {
128 // C# -- fill the C from here 128 // C# -- fill the C from here
129 QColor col = Qt::gray; 129 QColor col = Qt::gray;
130 if (i == 61) { // filling middle C 130 if (i == 61) { // filling middle C
131 col = Qt::blue; 131 col = Qt::blue;
132 col = col.light(150); 132 col = col.lighter(150);
133 } 133 }
134 if (x - ppx > 2) { 134 if (x - ppx > 2) {
135 paint.fillRect((px + ppx) / 2 + 1, 135 paint.fillRect((px + ppx) / 2 + 1,
136 y0 + 1, 136 y0 + 1,
137 x - (px + ppx) / 2 - 1, 137 x - (px + ppx) / 2 - 1,