Revision 30:2554aab152a5 CepstrumPitchTracker.h

View differences:

CepstrumPitchTracker.h
103 103

  
104 104
        bool accept(Estimate);
105 105

  
106
        State getState();
107

  
108
        Estimates getAcceptedEstimates();
109
        Note getAveragedNote();
110

  
111
        void addFeatures(FeatureSet &fs);
106
        State getState() const;
107
        Estimates getAcceptedEstimates() const;
108
        Note getAveragedNote() const;
112 109

  
113 110
    private:
114
        bool isWithinTolerance(Estimate);
115
        bool isOutOfDateFor(Estimate);
116
        bool isSatisfied();
117
        double getMeanFrequency();
111
        bool isWithinTolerance(Estimate) const;
112
        bool isOutOfDateFor(Estimate) const;
113
        bool isSatisfied() const;
114
        double getMeanFrequency() const;
118 115

  
119 116
        State m_state;
120 117
        Estimates m_pending;
......
124 121
    Hypotheses m_possible;
125 122
    Hypothesis m_good;
126 123

  
124
    void addFeaturesFrom(Hypothesis h, FeatureSet &fs);
125

  
127 126
    void filter(const double *in, double *out);
128 127
    double cubicInterpolate(const double[4], double);
129 128
    double findInterpolatedPeak(const double *in, int maxbin);

Also available in: Unified diff