add more accessors for 2nd order lp block and derivative block

This commit is contained in:
Thomas Gubler
2015-09-09 06:24:00 +02:00
parent 2c5d810b06
commit b4ee05da03
2 changed files with 11 additions and 2 deletions
+6 -1
View File
@@ -200,10 +200,15 @@ int blockHighPassTest()
float BlockLowPass2::update(float input)
{
if (!isfinite(getState())) {
setState(input);
}
if (_lp.get_cutoff_freq() != getFCutParam()) {
_lp.set_cutoff_frequency(_fs, getFCutParam());
}
return _lp.apply(input);
_state = _lp.apply(input);
return _state;
}
float BlockIntegral::update(float input)