Mercurial > hg > vampy
diff Example VamPy plugins/PySpectralCentroid.py @ 68:44d56a3d16b7
Various fixes to the example plugins
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 11:44:15 +0000 |
parents | d56f48aafb99 |
children | f5b8646494d2 |
line wrap: on
line diff
--- a/Example VamPy plugins/PySpectralCentroid.py Mon Nov 17 10:03:44 2014 +0000 +++ b/Example VamPy plugins/PySpectralCentroid.py Mon Nov 17 11:44:15 2014 +0000 @@ -41,7 +41,7 @@ self.m_channels = 0 self.previousSample = 0.0 self.m_inputSampleRate = inputSampleRate - self.threshold = 0.00 + self.threshold = 0.05 def initialise(self,channels,stepSize,blockSize): self.m_channels = channels @@ -83,7 +83,7 @@ thd = ParameterDescriptor() thd.identifier='threshold' thd.name='Noise threshold' - thd.description='Return null or delete this function if not needed.' + thd.description='Magnitude below which a process block will be disregarded and zero returned' thd.unit='v' thd.minValue=0.0 thd.maxValue=0.5