code: def testAllSemitonesAllOctaves(self):
      # Tests whether a spectral peak output of 12 consecutive semitones
      # yields a HPCP of all 1's for octaves 1 to 8
      for octave in [1, 2, 3, 4, 5, 6, 7, 8]:
          tonic = 55 * pow(2, octave - 1)
          freqs = [(tonic * 2 ** (x / 12.0)) for x in range(12)]
          mags = [1] * 12
          hpcp = HPCP(maxFrequency=14000)(freqs, mags)
          self.assertEqualVector(
              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,
              ],
          )
  
file_path: essentia/test/src/unittests/spectral/test_hpcp.py
imports: from essentia_test import *
label_desc: Use image node_id 4 for calling the TestHPCP obj's underlying member method code with example usage: obj.testAllSemitonesAllOctaves() without return types