# HG changeset patch # User matthiasm # Date 1340115920 -3600 # Node ID 02ab98e51436f2c7ce1642a449915119ce872040 # Parent 2748660cb42142a1541a9a51f363febb0683c44c applying Johan Pauwels patch diff -r 2748660cb421 -r 02ab98e51436 Makefile.linux --- a/Makefile.linux Tue Jun 19 15:22:31 2012 +0100 +++ b/Makefile.linux Tue Jun 19 15:25:20 2012 +0100 @@ -28,7 +28,7 @@ nnls.o: nnls.h Chordino.o: Chordino.h NNLSBase.h chromamethods.h nnls.h -chromamethods.o: chromamethods.h nnls.h chorddict.cpp +chromamethods.o: chromamethods.h nnls.h NNLSBase.o: NNLSBase.h chromamethods.h nnls.h NNLSChroma.o: NNLSChroma.h NNLSBase.h chromamethods.h nnls.h plugins.o: NNLSChroma.h NNLSBase.h Chordino.h Tuning.h diff -r 2748660cb421 -r 02ab98e51436 Makefile.osx --- a/Makefile.osx Tue Jun 19 15:22:31 2012 +0100 +++ b/Makefile.osx Tue Jun 19 15:25:20 2012 +0100 @@ -32,7 +32,7 @@ nnls.o: nnls.h Chordino.o: Chordino.h NNLSBase.h chromamethods.h nnls.h -chromamethods.o: chromamethods.h nnls.h chorddict.cpp +chromamethods.o: chromamethods.h nnls.h NNLSBase.o: NNLSBase.h chromamethods.h nnls.h NNLSChroma.o: NNLSChroma.h NNLSBase.h chromamethods.h nnls.h plugins.o: NNLSChroma.h NNLSBase.h Chordino.h Tuning.h diff -r 2748660cb421 -r 02ab98e51436 chromamethods.cpp --- a/chromamethods.cpp Tue Jun 19 15:22:31 2012 +0100 +++ b/chromamethods.cpp Tue Jun 19 15:25:20 2012 +0100 @@ -31,8 +31,6 @@ #include #include -#include "chorddict.cpp" - using namespace std; using namespace boost; @@ -355,7 +353,7 @@ "A (bass)","Bb (bass)","B (bass)","C (bass)","C# (bass)","D (bass)","Eb (bass)","E (bass)","F (bass)","F# (bass)","G (bass)","Ab (bass)", "A","Bb","B","C","C#","D","Eb","E","F","F#","G","Ab"}; - const char* bassnames[13][12] ={ + const char* bassnames[12][12] ={ {"A","","B","C","C#","D","","E","","F#","G","G#"}, {"Bb","","C","Db","D","Eb","","F","","G","Ab","A"}, {"B","","C#","D","D#","E","","F#","","G#","A","A#"}, @@ -367,8 +365,7 @@ {"F","","G","Ab","A","Bb","","C","","D","Eb","E"}, {"F#","","G#","A","A#","B","","C#","","D#","E","E#"}, {"G","","A","Bb","B","C","","D","","E","F","F#"}, - {"Ab","","Bb","Cb","C","Db","","Eb","","F","Gb","G"}, - {"1","","2","b3","3","4","","5","","6","b7","7"} + {"Ab","","Bb","Cb","C","Db","","Eb","","F","Gb","G"} }; bool hasExternalDictinoary = true; @@ -408,7 +405,6 @@ vector loadedChordNames; vector loadedChordDict; if (hasExternalDictinoary && chordDictFile.is_open()) { - cerr << "-----------------> " << tempChordNames.size() << endl; tempChordDict.clear(); tempChordNames.clear(); while (std::getline(chordDictFile, line)) { // loop over lines in chord.dict file @@ -435,6 +431,7 @@ tempChordNames.push_back(chordType); } } + cerr << "-----------------> " << tempChordNames.size() << endl; } @@ -448,8 +445,6 @@ if (tempChordDict[24*iType+(kSemitone) % 12] > 0.99) { if (harte_syntax == 0.0) { slashNotation = bassnames[iSemitone][kSemitone]; - } else { - slashNotation = bassnames[12][kSemitone]; } } } diff -r 2748660cb421 -r 02ab98e51436 nnls-chroma.n3 --- a/nnls-chroma.n3 Tue Jun 19 15:22:31 2012 +0100 +++ b/nnls-chroma.n3 Tue Jun 19 15:25:20 2012 +0100 @@ -1,7 +1,7 @@ @prefix rdfs: . @prefix xsd: . @prefix vamp: . -@prefix plugbase: . +@prefix plugbase: . @prefix owl: . @prefix dc: . @prefix af: .