Mercurial > hg > nnls-chroma
changeset 111:96cea9c05046 monophonicness
changed chord.dict for experiment
author | Matthias Mauch <mail@matthiasmauch.net> |
---|---|
date | Tue, 29 Mar 2011 13:56:02 +0100 |
parents | bf894897436d |
children | 846b552ea3b0 |
files | Chordino.cpp NNLSChroma.cpp chord.dict |
diffstat | 3 files changed, 35 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/Chordino.cpp Mon Mar 28 16:04:51 2011 +0100 +++ b/Chordino.cpp Tue Mar 29 13:56:02 2011 +0100 @@ -595,7 +595,7 @@ fsOut[m_outputLoglikelihood].push_back(loglikelihood); } logscale /= nFrame; - cerr << "loglik" << logscale << endl; + // cerr << "loglik" << logscale << endl; // cerr << chordpath[0] << endl;
--- a/NNLSChroma.cpp Mon Mar 28 16:04:51 2011 +0100 +++ b/NNLSChroma.cpp Tue Mar 29 13:56:02 2011 +0100 @@ -250,7 +250,7 @@ consonancemean += consonancepattern[i]/nConsonance; } - cerr << "consonancemean = " << consonancemean << endl; + // cerr << "consonancemean = " << consonancemean << endl; for (int i = 0; i< nConsonance; ++i) { consonancepattern[i] -= consonancemean; @@ -474,8 +474,8 @@ // note_sum += note[iPitchClass]; } // float note_monophonicness = 12*note_max/(12*note_max+note_sum); - cerr << note_max << endl; - cerr << note_runnerup << endl << endl; + // cerr << note_max << endl; + // cerr << note_runnerup << endl << endl; float note_monophonicness = 0.5; if (note_max > 0) { note_monophonicness = (note_max / (note_max+note_runnerup) - 0.5) * 2;
--- a/chord.dict Mon Mar 28 16:04:51 2011 +0100 +++ b/chord.dict Tue Mar 29 13:56:02 2011 +0100 @@ -6,24 +6,43 @@ # - fields 14-25 correspond to chord pitch classes A through Ab ### Advanced Learners Chord Dictionary +# =1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0 +# =0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,0,0 +# m=1,0,0,0,0,0,0,0,0,0,0,0,1,0,0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