comparison data/model/FFTModel.h @ 1200:825d0d7641ba spectrogram-minor-refactor

Restore phase display
author Chris Cannam
date Thu, 04 Aug 2016 14:02:56 +0100
parents 6d09ad2ab21f
children bac86d3fc6c9
comparison
equal deleted inserted replaced
1199:4d0d94ba2ea7 1200:825d0d7641ba
74 virtual int getResolution() const { return m_windowIncrement; } 74 virtual int getResolution() const { return m_windowIncrement; }
75 virtual int getYBinCount() const { return getHeight(); } 75 virtual int getYBinCount() const { return getHeight(); }
76 virtual float getMinimumLevel() const { return 0.f; } // Can't provide 76 virtual float getMinimumLevel() const { return 0.f; } // Can't provide
77 virtual float getMaximumLevel() const { return 1.f; } // Can't provide 77 virtual float getMaximumLevel() const { return 1.f; } // Can't provide
78 virtual Column getColumn(int x) const; // magnitudes 78 virtual Column getColumn(int x) const; // magnitudes
79 virtual Column getPhases(int x) const;
79 virtual QString getBinName(int n) const; 80 virtual QString getBinName(int n) const;
80 virtual bool shouldUseLogValueScale() const { return true; } 81 virtual bool shouldUseLogValueScale() const { return true; }
81 virtual int getCompletion() const { 82 virtual int getCompletion() const {
82 int c = 100; 83 int c = 100;
83 if (m_model) { 84 if (m_model) {
93 int getChannel() const { return m_channel; } 94 int getChannel() const { return m_channel; }
94 WindowType getWindowType() const { return m_windowType; } 95 WindowType getWindowType() const { return m_windowType; }
95 int getWindowSize() const { return m_windowSize; } 96 int getWindowSize() const { return m_windowSize; }
96 int getWindowIncrement() const { return m_windowIncrement; } 97 int getWindowIncrement() const { return m_windowIncrement; }
97 int getFFTSize() const { return m_fftSize; } 98 int getFFTSize() const { return m_fftSize; }
99
100 //!!! review which of these are ever actually called
98 101
99 float getMagnitudeAt(int x, int y) const; 102 float getMagnitudeAt(int x, int y) const;
100 float getMaximumMagnitudeAt(int x) const; 103 float getMaximumMagnitudeAt(int x) const;
101 float getPhaseAt(int x, int y) const; 104 float getPhaseAt(int x, int y) const;
102 void getValuesAt(int x, int y, float &real, float &imaginary) const; 105 void getValuesAt(int x, int y, float &real, float &imaginary) const;