comparison 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
comparison
equal deleted inserted replaced
67:146d14ab15e7 68:44d56a3d16b7
39 self.m_stepSize = 0 39 self.m_stepSize = 0
40 self.m_blockSize = 0 40 self.m_blockSize = 0
41 self.m_channels = 0 41 self.m_channels = 0
42 self.previousSample = 0.0 42 self.previousSample = 0.0
43 self.m_inputSampleRate = inputSampleRate 43 self.m_inputSampleRate = inputSampleRate
44 self.threshold = 0.00 44 self.threshold = 0.05
45 45
46 def initialise(self,channels,stepSize,blockSize): 46 def initialise(self,channels,stepSize,blockSize):
47 self.m_channels = channels 47 self.m_channels = channels
48 self.m_stepSize = stepSize 48 self.m_stepSize = stepSize
49 self.m_blockSize = blockSize 49 self.m_blockSize = blockSize
81 81
82 def getParameterDescriptors(self): 82 def getParameterDescriptors(self):
83 thd = ParameterDescriptor() 83 thd = ParameterDescriptor()
84 thd.identifier='threshold' 84 thd.identifier='threshold'
85 thd.name='Noise threshold' 85 thd.name='Noise threshold'
86 thd.description='Return null or delete this function if not needed.' 86 thd.description='Magnitude below which a process block will be disregarded and zero returned'
87 thd.unit='v' 87 thd.unit='v'
88 thd.minValue=0.0 88 thd.minValue=0.0
89 thd.maxValue=0.5 89 thd.maxValue=0.5
90 thd.defaultValue=0.05 90 thd.defaultValue=0.05
91 thd.isQuantized=False 91 thd.isQuantized=False