code: def testConstantInput(self):
      audio = ones(44100 * 5)
      frames = FrameGenerator(
          audio, frameSize=framesize, hopSize=hopsize
      )
      win = Windowing(type="hamming")
      fft = FFT()
      onset_hfc = OnsetDetection(method="hfc")
      onset_complex = OnsetDetection(method="complex")
      onset_flux = OnsetDetection(method="flux")
      onset_melflux = OnsetDetection(method="melflux")
      onset_rms = OnsetDetection(method="rms")
      onset_complex_phase = OnsetDetection(method="complex_phase")
      found_complex = []
      found_hfc = []
      found_flux = []
      found_melflux = []
      found_rms = []
      found_complex_phase = []
      for frame in frames:
          fft_frame = fft(win(frame))
          mag, ph = CartesianToPolar()(fft_frame)
          mag = zeros(len(mag))
          found_hfc += [onset_hfc(mag, ph)]
          found_complex += [onset_complex(mag, ph)]
          found_flux += [onset_flux(mag, ph)]
          found_melflux += [onset_melflux(mag, ph)]
          found_rms += [onset_rms(mag, ph)]
          found_complex_phase += [onset_complex_phase(mag, ph)]
      self.assertEqualVector(found_complex, zeros(len(found_complex)))
      self.assertEqualVector(found_hfc, zeros(len(found_hfc)))
      self.assertEqualVector(found_flux, zeros(len(found_flux)))
      self.assertEqualVector(found_melflux, zeros(len(found_melflux)))
      self.assertEqualVector(found_rms, zeros(len(found_rms)))
      self.assertEqualVector(found_hfc, zeros(len(found_hfc)))
      self.assertEqualVector(
          found_complex_phase, zeros(len(found_complex_phase))
      )
  
file_path: essentia/test/src/unittests/rhythm/test_onsetdetection.py
imports: from numpy import *
  from essentia_test import *
label_desc: Use image node_id 3 for calling the TestOnsetDetection obj's underlying member method code with example usage: obj.testConstantInput() without return types