diff base/Pitch.h @ 141:4f26f623a8bc

* Finish preferences dialog (as far as it's going at the moment) and connect it up * Fix Parzen window shape (was triangular!) * Various fixes to spectrogram draw coordinates in smoothing mode etc * Draw C keys in grey on the piano
author Chris Cannam
date Fri, 21 Jul 2006 16:03:42 +0000
parents d397ea0a79f5
children e412f65884ee
line wrap: on
line diff
--- a/base/Pitch.h	Thu Jul 20 16:51:20 2006 +0000
+++ b/base/Pitch.h	Fri Jul 21 16:03:42 2006 +0000
@@ -21,20 +21,22 @@
 class Pitch
 {
 public:
+    /* If concertA <= 0, it will be taken from current preferences */
+
     static float getFrequencyForPitch(int midiPitch,
 				      float centsOffset = 0,
-				      float concertA = 440.0);
+				      float concertA = 0.0);
 
     static int getPitchForFrequency(float frequency,
 				    float *centsOffsetReturn = 0,
-				    float concertA = 440.0);
+				    float concertA = 0.0);
 
     static QString getPitchLabel(int midiPitch,
 				 float centsOffset = 0,
 				 bool useFlats = false);
 
     static QString getPitchLabelForFrequency(float frequency,
-					     float concertA = 440.0,
+					     float concertA = 0.0,
 					     bool useFlats = false);
 };