# HG changeset patch # User mathieub # Date 1314107102 -3600 # Node ID c080d14ff414129bd36f99c6eb01bd6a35c0aa9e # Parent 5fa210337beef84ad8cd3388deca71b7aa765bc5 Put some debug outputs in comments diff -r 5fa210337bee -r c080d14ff414 layer/SpectrogramLayer.cpp --- a/layer/SpectrogramLayer.cpp Mon Jul 25 18:56:28 2011 +0100 +++ b/layer/SpectrogramLayer.cpp Tue Aug 23 14:45:02 2011 +0100 @@ -3788,7 +3788,7 @@ bool SpectrogramLayer::scaleClicked(const View *v, QMouseEvent *e) { - std::cerr<< "Mouse click detected in the spectrogram scale area: (" << e->x() << "," << e->y() << ")" << std::endl; + //std::cerr<< "Mouse click detected in the spectrogram scale area: (" << e->x() << "," << e->y() << ")" << std::endl; float freq; QString unit; @@ -3800,7 +3800,7 @@ midipitch = Pitch::getPitchForFrequency(freq,centsOffsetReturn,concertA); - std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl; + //std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl; if ((midipitch>=0)&&(midipitch<127)) { v->playExampleNote(midipitch); diff -r 5fa210337bee -r c080d14ff414 layer/SpectrumLayer.cpp --- a/layer/SpectrumLayer.cpp Mon Jul 25 18:56:28 2011 +0100 +++ b/layer/SpectrumLayer.cpp Tue Aug 23 14:45:02 2011 +0100 @@ -876,7 +876,7 @@ bool SpectrumLayer::scaleClicked(const View *v, QMouseEvent *e) { - std::cerr<< "Mouse click detected in the spectrum scale area: (" << e->x() << "," << e->y() << ")" << std::endl; + //std::cerr<< "Mouse click detected in the spectrum scale area: (" << e->x() << "," << e->y() << ")" << std::endl; float freq; QString unit; @@ -888,7 +888,7 @@ midipitch = Pitch::getPitchForFrequency(freq,centsOffsetReturn,concertA); - std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl; + //std::cerr<< "Frequency: " << freq << " " << unit.toStdString() << " (midi pitch = " << midipitch << ")" << std::endl; if ((midipitch>=0)&&(midipitch<127)) { v->playExampleNote(midipitch); diff -r 5fa210337bee -r c080d14ff414 view/Pane.cpp --- a/view/Pane.cpp Mon Jul 25 18:56:28 2011 +0100 +++ b/view/Pane.cpp Tue Aug 23 14:45:02 2011 +0100 @@ -1302,11 +1302,11 @@ case LayerFactory::Spectrogram: { - std::cerr << "hello spectrogram ("<< e->x() <<", " << e->y() << ")" << std::endl; + //std::cerr << "hello spectrogram ("<< e->x() <<", " << e->y() << ")" << std::endl; } case LayerFactory::MelodicRangeSpectrogram: { - std::cerr << "hello melodic ("<< e->x() <<", " << e->y() << ")" << std::endl; + //std::cerr << "hello melodic ("<< e->x() <<", " << e->y() << ")" << std::endl; int sw = getVerticalScaleWidth(); int pkhms = 20; //this value should be retrieved from SpectrogramLayer int slb = sw - pkhms - 1; //scale left border @@ -1320,7 +1320,7 @@ } case LayerFactory::Spectrum: { - std::cerr << "hello spectrum ("<< e->x() <<", " << e->y() << ")" << std::endl; + //std::cerr << "hello spectrum ("<< e->x() <<", " << e->y() << ")" << std::endl; int h = height(); int pkhs = 20; //this value should be retrieved from SpectrumLayer