comparison flattendynamics-ladspa.h @ 17:ca4e31d86436

The complicated long-and-short-term approach is not working any better than a simple long-term window. Revert to that, with some decay.
author Chris Cannam
date Wed, 23 Jul 2014 15:17:47 +0100
parents 7bb35203a7bd
children
comparison
equal deleted inserted replaced
16:c12cab43141d 17:ca4e31d86436
54 float *m_history; 54 float *m_history;
55 int m_histlen; 55 int m_histlen;
56 int m_histwrite; 56 int m_histwrite;
57 int m_histread; 57 int m_histread;
58 58
59 double m_sumOfSquaresLongTerm; 59 double m_sumOfSquares;
60 double m_sumOfSquaresShortTerm; 60 float m_rms;
61 61 float m_maxRms;
62 float m_rmsLongTerm;
63 float m_rmsShortTerm;
64
65 float m_maxRmsLongTerm;
66 float m_maxRmsShortTerm;
67
68 float m_gain; 62 float m_gain;
69 }; 63 };
70 64
71 #endif 65 #endif