changeset 22:1ae350e97f93

* Add quantizeStep to parameter descriptor!
author cannam
date Tue, 14 Jul 2009 15:54:03 +0000
parents ef3452f4a0c9
children 535d559300dc
files PyPlugin.cpp PyPlugin.h
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/PyPlugin.cpp	Tue Jul 14 12:48:01 2009 +0000
+++ b/PyPlugin.cpp	Tue Jul 14 15:54:03 2009 +0000
@@ -663,7 +663,9 @@
 						break;
 					case p::isQuantized:
 						pd.isQuantized = (bool) PyInt_AS_LONG(pyValue); 
-						break;					
+						break;									case p::quantizeStep:
+						pd.quantizeStep = (float) PyFloat_AS_DOUBLE(pyValue);
+						break;
 					default : 	
 						cerr << "Invalid key in Vamp OutputDescriptor: " << PyString_AsString(pyKey) << endl; 
 				} 				
@@ -1101,6 +1103,7 @@
 	parmKeys["maxValue"] = p::maxValue;
 	parmKeys["defaultValue"] = p::defaultValue;
 	parmKeys["isQuantized"] = p::isQuantized;
+	parmKeys["quantizeStep"] = p::quantizeStep;
 
 	isMapInitialised = true;
 	return true;
--- a/PyPlugin.h	Tue Jul 14 12:48:01 2009 +0000
+++ b/PyPlugin.h	Tue Jul 14 15:54:03 2009 +0000
@@ -78,7 +78,8 @@
 	minValue,
 	maxValue,
 	defaultValue,
-	isQuantized
+	isQuantized,
+	quantizeStep
 	};
 }