comparison widgets/Pane.cpp @ 37:21d061e66177

* Make the frequency estimation mode in the spectrogram layer actually useful, and make sure it gets mostly the right results... Still some tidying to do in here.
author Chris Cannam
date Wed, 22 Feb 2006 17:45:18 +0000
parents c28ebb4ba4de
children f2c416cbdaa9
comparison
equal deleted inserted replaced
36:c28ebb4ba4de 37:21d061e66177
548 if (layer) { 548 if (layer) {
549 layer->snapToFeatureFrame(snapFrameLeft, resolution, Layer::SnapLeft); 549 layer->snapToFeatureFrame(snapFrameLeft, resolution, Layer::SnapLeft);
550 layer->snapToFeatureFrame(snapFrameRight, resolution, Layer::SnapRight); 550 layer->snapToFeatureFrame(snapFrameRight, resolution, Layer::SnapRight);
551 } 551 }
552 552
553 std::cerr << "snap: frame = " << mouseFrame << ", start frame = " << m_selectionStartFrame << ", left = " << snapFrameLeft << ", right = " << snapFrameRight << std::endl; 553 // std::cerr << "snap: frame = " << mouseFrame << ", start frame = " << m_selectionStartFrame << ", left = " << snapFrameLeft << ", right = " << snapFrameRight << std::endl;
554 554
555 if (snapFrameLeft < 0) snapFrameLeft = 0; 555 if (snapFrameLeft < 0) snapFrameLeft = 0;
556 if (snapFrameRight < 0) snapFrameRight = 0; 556 if (snapFrameRight < 0) snapFrameRight = 0;
557 557
558 size_t min, max; 558 size_t min, max;