comparison layer/SpectrogramLayer.cpp @ 199:45e995ed84d9

* Flesh out feature descriptions for spectrum
author Chris Cannam
date Mon, 05 Feb 2007 16:11:49 +0000
parents 6b023411087b
children 258af0c4dc28
comparison
equal deleted inserted replaced
198:c2ed5014d4ff 199:45e995ed84d9
2469 dbMaxString = tr("-Inf"); 2469 dbMaxString = tr("-Inf");
2470 } else { 2470 } else {
2471 dbMaxString = QString("%1").arg(lrintf(dbMax)); 2471 dbMaxString = QString("%1").arg(lrintf(dbMax));
2472 } 2472 }
2473 if (lrintf(dbMin) != lrintf(dbMax)) { 2473 if (lrintf(dbMin) != lrintf(dbMax)) {
2474 text += tr("dB:\t%1 - %2").arg(lrintf(dbMin)).arg(lrintf(dbMax)); 2474 text += tr("dB:\t%1 - %2").arg(dbMinString).arg(dbMaxString);
2475 } else { 2475 } else {
2476 text += tr("dB:\t%1").arg(lrintf(dbMin)); 2476 text += tr("dB:\t%1").arg(dbMinString);
2477 } 2477 }
2478 if (phaseMin != phaseMax) { 2478 if (phaseMin != phaseMax) {
2479 text += tr("\nPhase:\t%1 - %2").arg(phaseMin).arg(phaseMax); 2479 text += tr("\nPhase:\t%1 - %2").arg(phaseMin).arg(phaseMax);
2480 } else { 2480 } else {
2481 text += tr("\nPhase:\t%1").arg(phaseMin); 2481 text += tr("\nPhase:\t%1").arg(phaseMin);