Mercurial > hg > nnls-chroma
comparison NNLSBase.cpp @ 115:526250b06fe0 monophonicness
some comments, some variable renamings
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Thu, 31 Mar 2011 14:26:53 +0100 |
parents | 846b552ea3b0 |
children | 7a8956e903e1 |
comparison
equal
deleted
inserted
replaced
114:3f104bceac99 | 115:526250b06fe0 |
---|---|
49 m_tuneLocal(0.0), | 49 m_tuneLocal(0.0), |
50 m_doNormalizeChroma(0), | 50 m_doNormalizeChroma(0), |
51 m_rollon(0.0), | 51 m_rollon(0.0), |
52 m_boostN(0.1), | 52 m_boostN(0.1), |
53 m_s(0.7), | 53 m_s(0.7), |
54 m_useHarte(0), | 54 m_harte_syntax(0), |
55 sinvalues(0), | 55 sinvalues(0), |
56 cosvalues(0) | 56 cosvalues(0) |
57 { | 57 { |
58 if (debug_on) cerr << "--> NNLSBase" << endl; | 58 if (debug_on) cerr << "--> NNLSBase" << endl; |
59 // make the *note* dictionary matrix | 59 // make the *note* dictionary matrix |
151 d.quantizeStep = 1.0; | 151 d.quantizeStep = 1.0; |
152 list.push_back(d); | 152 list.push_back(d); |
153 | 153 |
154 ParameterDescriptor d0; | 154 ParameterDescriptor d0; |
155 d0.identifier = "rollon"; | 155 d0.identifier = "rollon"; |
156 d0.name = "spectral roll-on"; | 156 d0.name = "bass noise threshold"; |
157 d0.description = "Consider the cumulative energy spectrum (from low to high frequencies). All bins below the first bin whose cumulative energy exceeds the quantile [spectral roll on] x [total energy] will be set to 0. A value of 0 means that no bins will be changed."; | 157 d0.description = "Consider the cumulative energy spectrum (from low to high frequencies). All bins below the first bin whose cumulative energy exceeds the quantile [bass noise threshold] x [total energy] will be set to 0. A threshold value of 0 means that no bins will be changed."; |
158 d0.unit = "%"; | 158 d0.unit = "%"; |
159 d0.minValue = 0; | 159 d0.minValue = 0; |
160 d0.maxValue = 5; | 160 d0.maxValue = 5; |
161 d0.defaultValue = 0; | 161 d0.defaultValue = 0; |
162 d0.isQuantized = true; | 162 d0.isQuantized = true; |
260 if (identifier == "useHMM") { | 260 if (identifier == "useHMM") { |
261 return m_useHMM; | 261 return m_useHMM; |
262 } | 262 } |
263 | 263 |
264 if (identifier == "usehartesyntax") { | 264 if (identifier == "usehartesyntax") { |
265 return m_useHarte; | 265 return m_harte_syntax; |
266 } | 266 } |
267 | 267 |
268 return 0; | 268 return 0; |
269 | 269 |
270 } | 270 } |
323 if (identifier == "rollon") { | 323 if (identifier == "rollon") { |
324 m_rollon = value; | 324 m_rollon = value; |
325 } | 325 } |
326 | 326 |
327 if (identifier == "usehartesyntax") { | 327 if (identifier == "usehartesyntax") { |
328 m_useHarte = value; | 328 m_harte_syntax = value; |
329 } | 329 } |
330 } | 330 } |
331 | 331 |
332 NNLSBase::ProgramList | 332 NNLSBase::ProgramList |
333 NNLSBase::getPrograms() const | 333 NNLSBase::getPrograms() const |