# HG changeset patch # User cannam # Date 1247586843 0 # Node ID 1ae350e97f933f527064a7c97227ecc3fd39f365 # Parent ef3452f4a0c99f7a0ead957d20789632a44d74d7 * Add quantizeStep to parameter descriptor! diff -r ef3452f4a0c9 -r 1ae350e97f93 PyPlugin.cpp --- 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; diff -r ef3452f4a0c9 -r 1ae350e97f93 PyPlugin.h --- 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 }; }