Mercurial > hg > vampy
comparison Example VamPy plugins/PySpectralCentroid.py @ 69:f5b8646494d2
Metadata fixes
author | Chris Cannam |
---|---|
date | Mon, 17 Nov 2014 12:53:51 +0000 |
parents | 44d56a3d16b7 |
children | 6c755f3e1173 |
comparison
equal
deleted
inserted
replaced
68:44d56a3d16b7 | 69:f5b8646494d2 |
---|---|
2 how to write a C style plugin using VamPy in pure Python. | 2 how to write a C style plugin using VamPy in pure Python. |
3 This plugin also introduces the use of the builtin vampy | 3 This plugin also introduces the use of the builtin vampy |
4 extension module. | 4 extension module. |
5 | 5 |
6 The plugin has frequency domain input and is using the | 6 The plugin has frequency domain input and is using the |
7 legacy interface: the FFT outpout is passed as a list | 7 legacy interface: the FFT output is passed as a list |
8 of complex numbers. | 8 of complex numbers. |
9 | 9 |
10 Outputs: | 10 Outputs: |
11 1) Spectral centroid | 11 1) Spectral centroid |
12 | 12 |
55 def getName(self): | 55 def getName(self): |
56 return 'Spectral Centroid (using legacy process interface)' | 56 return 'Spectral Centroid (using legacy process interface)' |
57 | 57 |
58 def getIdentifier(self): | 58 def getIdentifier(self): |
59 return 'vampy-sc3' | 59 return 'vampy-sc3' |
60 | 60 |
61 def getDescription(self): | |
62 return 'Calculate the linear frequency centroid of the short-time Fourier spectrum' | |
63 | |
64 def getCopyright(self): | |
65 return 'Plugin By George Fazekas. Freely redistributable example plugin (BSD license)' | |
66 | |
61 def getMaxChannelCount(self): | 67 def getMaxChannelCount(self): |
62 return 1 | 68 return 1 |
63 | 69 |
64 def getInputDomain(self): | 70 def getInputDomain(self): |
65 return FrequencyDomain | 71 return FrequencyDomain |