diff src/Analyser.cpp @ 21:05070252e43f

larger notes plus basic editing functions are now enabled by temporary star icon in toolbar
author gyorgyf
date Wed, 17 Apr 2013 09:15:05 +0100
parents f97399f18564
children 9e695ff60b74
line wrap: on
line diff
--- a/src/Analyser.cpp	Mon Apr 15 18:07:05 2013 +0100
+++ b/src/Analyser.cpp	Wed Apr 17 09:15:05 2013 +0100
@@ -48,11 +48,11 @@
     m_fileModel = model;
     m_pane = pane;
 
-    TransformId f0 = "vamp:yintony:yintony:f0";
-    TransformId notes = "vamp:yintony:yintony:notes";
+    // TransformId f0 = "vamp:yintony:yintony:f0";
+    // TransformId notes = "vamp:yintony:yintony:notes";
 
-    // TransformId f0 = "vamp:cepstral-pitchtracker:cepstral-pitchtracker:f0";
-    // TransformId notes = "vamp:cepstral-pitchtracker:cepstral-pitchtracker:notes";
+    TransformId f0 = "vamp:cepstral-pitchtracker:cepstral-pitchtracker:f0";
+    TransformId notes = "vamp:cepstral-pitchtracker:cepstral-pitchtracker:notes";
 
     // We don't want a waveform in the main pane. We must have a
     // main-model layer of some sort, but the layers created by
@@ -73,6 +73,8 @@
 	    tvl->setPlotStyle(TimeValueLayer::PlotPoints);
 	    tvl->setBaseColour(ColourDatabase::getInstance()->
 			       getColourIndex(QString("Black")));
+			tvl->setVerticalScale(TimeValueLayer::LogScale);
+			tvl->setDisplayExtents(120.f,350.f); // temporary values: better get the real extents of the data form the model
 	}
     }
 
@@ -83,6 +85,8 @@
 	if (nl) {
 	    nl->setBaseColour(ColourDatabase::getInstance()->
 			      getColourIndex(QString("Bright Blue")));
+			nl->setVerticalScale(FlexiNoteLayer::LogScale);
+			nl->setDisplayExtents(120.f,350.f); // temporary values: better get the real extents of the data form the model
 	}
     }