Mercurial > hg > nnls-chroma
comparison Chordino.cpp @ 112:846b552ea3b0 monophonicness
Harte syntax as option in Chordino
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Tue, 29 Mar 2011 15:12:19 +0100 |
parents | 96cea9c05046 |
children | 5bcba43e2317 |
comparison
equal
deleted
inserted
replaced
111:96cea9c05046 | 112:846b552ea3b0 |
---|---|
153 boostn.minValue = 0.0; | 153 boostn.minValue = 0.0; |
154 boostn.maxValue = 1.0; | 154 boostn.maxValue = 1.0; |
155 boostn.defaultValue = 0.1; | 155 boostn.defaultValue = 0.1; |
156 boostn.isQuantized = false; | 156 boostn.isQuantized = false; |
157 list.push_back(boostn); | 157 list.push_back(boostn); |
158 | |
159 ParameterDescriptor usehartesyntax; | |
160 usehartesyntax.identifier = "usehartesyntax"; | |
161 usehartesyntax.name = "use Harte syntax"; | |
162 usehartesyntax.description = "Use the chord syntax proposed by Harte"; | |
163 usehartesyntax.unit = ""; | |
164 usehartesyntax.minValue = 0.0; | |
165 usehartesyntax.maxValue = 1.0; | |
166 usehartesyntax.defaultValue = 0.0; | |
167 usehartesyntax.isQuantized = true; | |
168 usehartesyntax.quantizeStep = 1.0; | |
169 usehartesyntax.valueNames.push_back("no"); | |
170 usehartesyntax.valueNames.push_back("yes"); | |
171 list.push_back(usehartesyntax); | |
158 | 172 |
159 return list; | 173 return list; |
160 } | 174 } |
161 | 175 |
162 Chordino::OutputList | 176 Chordino::OutputList |
243 } | 257 } |
244 | 258 |
245 if (!NNLSBase::initialise(channels, stepSize, blockSize)) { | 259 if (!NNLSBase::initialise(channels, stepSize, blockSize)) { |
246 return false; | 260 return false; |
247 } | 261 } |
248 m_chordnames = chordDictionary(&m_chorddict, &m_chordnotes, m_boostN); | 262 m_chordnames = chordDictionary(&m_chorddict, &m_chordnotes, m_boostN, m_useHarte); |
249 return true; | 263 return true; |
250 } | 264 } |
251 | 265 |
252 void | 266 void |
253 Chordino::reset() | 267 Chordino::reset() |