comparison chromamethods.cpp @ 95:dab7e7bfeba1 matthiasm-plugin 0.2

added release notes, updated README
author matthiasm
date Fri, 03 Dec 2010 00:46:12 +0900
parents b56dde3417d4
children daee3c60c4f9
comparison
equal deleted inserted replaced
94:19f3b33a19fb 95:dab7e7bfeba1
466 stand += pow(abs(loadedChordDict[24 * iChord + iST]),exponent)/24; 466 stand += pow(abs(loadedChordDict[24 * iChord + iST]),exponent)/24;
467 } 467 }
468 if (iChord < (int)loadedChordDict.size()/24 - 1) { 468 if (iChord < (int)loadedChordDict.size()/24 - 1) {
469 stand = powf(stand,1.0f/exponent); 469 stand = powf(stand,1.0f/exponent);
470 } else { 470 } else {
471 stand = powf(stand,1.0f/exponent) / boostN; 471 stand = powf(stand,1.0f/exponent) / (1+boostN);
472 } 472 }
473 for (int iST = 0; iST < 24; ++iST) { 473 for (int iST = 0; iST < 24; ++iST) {
474 loadedChordDict[24 * iChord + iST] /= stand; 474 loadedChordDict[24 * iChord + iST] /= stand;
475 } 475 }
476 476