diff widgets/UnitConverter.h @ 892:af63372e9002

Start connecting up tempo bits
author Chris Cannam
date Tue, 09 Dec 2014 13:53:44 +0000
parents 09b2940f483a
children 78ae34f388f6
line wrap: on
line diff
--- a/widgets/UnitConverter.h	Tue Dec 09 12:17:04 2014 +0000
+++ b/widgets/UnitConverter.h	Tue Dec 09 13:53:44 2014 +0000
@@ -38,8 +38,13 @@
     void noteChanged(int);
     void octaveChanged(int);
     void centsChanged(double);
-    void pianoChanged(int);
 
+    void samplesChanged(double);
+    void periodChanged(double);
+    void bpmChanged(double);
+    void tempofreqChanged(double);
+    void samplerateChanged(QString);
+    
     void preferenceChanged(PropertyContainer::PropertyName);
     
 private:
@@ -48,14 +53,18 @@
     QComboBox *m_note;
     QSpinBox *m_octave;
     QDoubleSpinBox *m_cents;
-    QSpinBox *m_piano;
     QLabel *m_pitchPrefsLabel;
     void updatePitchesFromFreq();
     void updatePitchPrefsLabel();
 
     QDoubleSpinBox *m_samples;
-    
+    QDoubleSpinBox *m_period;
+    QDoubleSpinBox *m_bpm;
+    QDoubleSpinBox *m_tempofreq;
+    QComboBox *m_samplerate;
     void updateTempiFromSamples();
+
+    double getSampleRate();
 };
 
 #endif