Mercurial > hg > nnls-chroma
diff 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 |
line wrap: on
line diff
--- a/Chordino.cpp Tue Mar 29 13:56:02 2011 +0100 +++ b/Chordino.cpp Tue Mar 29 15:12:19 2011 +0100 @@ -156,6 +156,20 @@ boostn.isQuantized = false; list.push_back(boostn); + ParameterDescriptor usehartesyntax; + usehartesyntax.identifier = "usehartesyntax"; + usehartesyntax.name = "use Harte syntax"; + usehartesyntax.description = "Use the chord syntax proposed by Harte"; + usehartesyntax.unit = ""; + usehartesyntax.minValue = 0.0; + usehartesyntax.maxValue = 1.0; + usehartesyntax.defaultValue = 0.0; + usehartesyntax.isQuantized = true; + usehartesyntax.quantizeStep = 1.0; + usehartesyntax.valueNames.push_back("no"); + usehartesyntax.valueNames.push_back("yes"); + list.push_back(usehartesyntax); + return list; } @@ -245,7 +259,7 @@ if (!NNLSBase::initialise(channels, stepSize, blockSize)) { return false; } - m_chordnames = chordDictionary(&m_chorddict, &m_chordnotes, m_boostN); + m_chordnames = chordDictionary(&m_chorddict, &m_chordnotes, m_boostN, m_useHarte); return true; }