changeset 10:fae450909d76

* spaces are not legal in identifiers
author cannam
date Tue, 24 Jun 2008 14:04:41 +0000
parents 76e255118810
children ff1564a04fc0
files plugins/XTractPlugin.cpp
diffstat 1 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/XTractPlugin.cpp	Wed Jun 18 13:39:00 2008 +0000
+++ b/plugins/XTractPlugin.cpp	Tue Jun 24 14:04:41 2008 +0000
@@ -332,7 +332,7 @@
 
     if (needPeakThreshold()) {
         
-        desc.identifier = "peak threshold";
+        desc.identifier = "peak-threshold";
         desc.name = "Peak Threshold";
         desc.minValue = 0;
         desc.maxValue = 100;
@@ -346,7 +346,7 @@
     
     if (needRolloffThreshold()) {
 
-        desc.identifier = "rolloff threshold";
+        desc.identifier = "rolloff-threshold";
         desc.name = "Rolloff Threshold";
         desc.minValue = 0;
         desc.maxValue = 100;
@@ -360,7 +360,7 @@
 
     if (needHarmonicThreshold()) {
 
-	desc.identifier = "harmonic threshold";
+	desc.identifier = "harmonic-threshold";
         desc.name = "Harmonic Threshold";
         desc.minValue = 0;
         desc.maxValue = 1.0;
@@ -386,9 +386,9 @@
         if (param == "style") return m_mfccStyle;
     }
 
-    if (param == "peak threshold") return m_peakThreshold;
-    if (param == "rolloff threshold") return m_rolloffThreshold;
-    if (param == "harmonic threshold") return m_harmonicThreshold;
+    if (param == "peak-threshold") return m_peakThreshold;
+    if (param == "rolloff-threshold") return m_rolloffThreshold;
+    if (param == "harmonic-threshold") return m_harmonicThreshold;
 
     return 0.f;
 }
@@ -413,9 +413,9 @@
         else if (param == "style") m_mfccStyle = lrintf(value + .1);
     }
 
-    if (param == "peak threshold") m_peakThreshold = value;
-    if (param == "rolloff threshold") m_rolloffThreshold = value;
-    if (param == "harmonic threshold") m_harmonicThreshold = value;
+    if (param == "peak-threshold") m_peakThreshold = value;
+    if (param == "rolloff-threshold") m_rolloffThreshold = value;
+    if (param == "harmonic-threshold") m_harmonicThreshold = value;
 }
 
 XTractPlugin::OutputList