class_docstr: Calculate the centroid frequency of the spectrum of the input signal
class_docstr_tok: ["Calculate","the","centroid","frequency","of","the","spectrum","of","the","input","signal"]
code: def __init__(self):
      super(VampSpectralCentroid, self).__init__()
      self.input_blocksize = 1024
      self.input_stepsize = self.input_blocksize
      # Define Vamp plugin key and output
      self.plugin_key = "vamp-libxtract:spectral_centroid"
      self.plugin_output = "spectral_centroid"
  
file_path: TimeSide/timeside/plugins/analyzer/externals/vamp_spectral_centroid.py
imports: from timeside.core import implements, interfacedoc
  from timeside.core.api import IAnalyzer
  from timeside.core.tools.parameters import HasTraits
  from timeside.core.tools.parameters import store_parameters
  import vamp
  import vampyhost
  from .vampyhost_wrapper import VampAnalyzer
  import numpy
label_desc: Use image node_id 1 to create a new VampSpectralCentroid object from inherited base classes: VampAnalyzer with example: obj = VampSpectralCentroid()