comparison Example VamPy plugins/PySpectralFeatures.py @ 68:44d56a3d16b7

Various fixes to the example plugins
author Chris Cannam
date Mon, 17 Nov 2014 11:44:15 +0000
parents 146d14ab15e7
children f5b8646494d2
comparison
equal deleted inserted replaced
67:146d14ab15e7 68:44d56a3d16b7
38 self.prevMag = zeros((blockSize/2)) 38 self.prevMag = zeros((blockSize/2))
39 return True 39 return True
40 40
41 def reset(self): 41 def reset(self):
42 # reset any initial conditions 42 # reset any initial conditions
43 self.prevMag = zeros((blockSize/2)) 43 self.prevMag = zeros((self.m_blockSize/2))
44 return None 44 return None
45 45
46 def getMaker(self): 46 def getMaker(self):
47 return 'Vampy Example Plugins' 47 return 'Vampy Example Plugins'
48 48
100 def getParameterDescriptors(self): 100 def getParameterDescriptors(self):
101 101
102 threshold = ParameterDescriptor() 102 threshold = ParameterDescriptor()
103 threshold.identifier='threshold' 103 threshold.identifier='threshold'
104 threshold.name='Noise threshold' 104 threshold.name='Noise threshold'
105 threshold.description='Noise threshold' 105 threshold.description='Magnitude below which a process block will be disregarded and zeroes returned'
106 threshold.unit='v' 106 threshold.unit='v'
107 threshold.minValue=0 107 threshold.minValue=0
108 threshold.maxValue=1 108 threshold.maxValue=1
109 threshold.defaultValue=0.05 109 threshold.defaultValue=0.05
110 threshold.isQuantized=False 110 threshold.isQuantized=False