Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
283:86a112b5b319 | 284:1284955856ab |
---|---|
2912 | 2912 |
2913 int n = (i % 12); | 2913 int n = (i % 12); |
2914 | 2914 |
2915 if (n == 1) { | 2915 if (n == 1) { |
2916 // C# -- fill the C from here | 2916 // C# -- fill the C from here |
2917 QColor col = Qt::gray; | |
2918 if (i == 61) { // filling middle C | |
2919 col = Qt::blue; | |
2920 col = col.light(150); | |
2921 } | |
2917 if (ppy - y > 2) { | 2922 if (ppy - y > 2) { |
2918 paint.fillRect(w - pkw, | 2923 paint.fillRect(w - pkw, |
2919 y, | 2924 y, |
2920 pkw, | 2925 pkw, |
2921 (py + ppy) / 2 - y, | 2926 (py + ppy) / 2 - y, |
2922 Qt::gray); | 2927 col); |
2923 } | 2928 } |
2924 } | 2929 } |
2925 | 2930 |
2926 if (n == 1 || n == 3 || n == 6 || n == 8 || n == 10) { | 2931 if (n == 1 || n == 3 || n == 6 || n == 8 || n == 10) { |
2927 // black notes | 2932 // black notes |