code: def testWhiteNoise(self):
      # ideal white noise spectrum would be a plain line
      spectrum_size = 1024 * 4 * 4 * 4 * 4
      bin_resolution = 20050.0 / spectrum_size
  
      freqs = [i * bin_resolution for i in range(1, spectrum_size + 1)]
      mags = [1.0] * len(freqs)
  
      hpcp = HPCP(
          minFrequency=440,
          maxFrequency=440 * 2,
          bandPreset=False,
          weightType="none",
          normalized="none",
      )(freqs, mags)
  
      # There are more bins in each consequent semitone, therefore we need
      # to normalize HPCP numbers by the number of corresponding frequency bins
      # to get a straight line.
      weights = [pow(2, i / 12.0) for i in range(0, 13)]
      weights[0] = (
          weights[0] / 2 + weights[12] / 2
      )  # same semitone, different octaves
      weights = weights[:12]
      hpcp = normalize([h / w for h, w in zip(hpcp, weights)])
      self.assertAlmostEqualVector(
          hpcp,
          [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
          precision=1e-2,
      )
  
file_path: essentia/test/src/unittests/spectral/test_hpcp.py
imports: from essentia_test import *
label_desc: Use image node_id 16 for calling the TestHPCP obj's underlying member method code with example usage: obj.testWhiteNoise() without return types