Mercurial > hg > svgui
changeset 595:c080d14ff414 integration_library
Put some debug outputs in comments
author | mathieub <mathieu.barthet@eecs.qmul.ac.uk> |
---|---|
date | Tue, 23 Aug 2011 14:45:02 +0100 |
parents | 5fa210337bee |
children | 2bf6dc6bc4d1 |
files | layer/SpectrogramLayer.cpp layer/SpectrumLayer.cpp view/Pane.cpp |
diffstat | 3 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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);
--- 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