Mercurial > hg > nnls-chroma
comparison NNLSBase.cpp @ 164:3c731acad404
Fix some problems from the plugin tester: zero sample rate with fixed sample type outputs; mismatching parameter id ("spectralshape" in Chordino, "s" in NNLSBase -- changing this in Chordino won't break anything as it would never have worked under that name anyway); some NaN values
author | Chris Cannam |
---|---|
date | Fri, 04 Sep 2015 16:45:37 +0100 |
parents | b547e7238bf5 |
children | 9e9267d6d78a |
comparison
equal
deleted
inserted
replaced
163:59b26f52550d | 164:3c731acad404 |
---|---|
265 } | 265 } |
266 | 266 |
267 void | 267 void |
268 NNLSBase::setParameter(string identifier, float value) | 268 NNLSBase::setParameter(string identifier, float value) |
269 { | 269 { |
270 // cerr << "setParameter (" << identifier << ") -> " << value << endl; | |
271 | |
270 if (debug_on) cerr << "--> setParameter" << endl; | 272 if (debug_on) cerr << "--> setParameter" << endl; |
271 if (identifier == "useNNLS") { | 273 if (identifier == "useNNLS") { |
272 m_useNNLS = (int) value; | 274 m_useNNLS = (int) value; |
273 } | 275 } |
274 | 276 |