diff layer/SpectrogramLayer.cpp @ 284:1284955856ab

* threshold, show-peaks properties in spectrum
author Chris Cannam
date Fri, 06 Jul 2007 15:17:35 +0000
parents 86a112b5b319
children 9dd432665059
line wrap: on
line diff
--- a/layer/SpectrogramLayer.cpp	Thu Jul 05 15:36:37 2007 +0000
+++ b/layer/SpectrogramLayer.cpp	Fri Jul 06 15:17:35 2007 +0000
@@ -2914,12 +2914,17 @@
 
             if (n == 1) {
                 // C# -- fill the C from here
+                QColor col = Qt::gray;
+                if (i == 61) { // filling middle C
+                    col = Qt::blue;
+                    col = col.light(150);
+                }
                 if (ppy - y > 2) {
                     paint.fillRect(w - pkw,
                                    y,
                                    pkw,
                                    (py + ppy) / 2 - y,
-                                   Qt::gray);
+                                   col);
                 }
             }