code: def testSemitoneAndSemitoneOctaveHigher(self):
      # dissonance (roughness) only applies to tones close enough:
      cFreq = 261.63
      cisFreq = 277.18
      cisFreq1 = cisFreq * 2  # 1 octave above
      semitoneFreqs = [cFreq, cisFreq]  # C-C#
      semitoneFreqs1 = [cFreq, cisFreq1]  # C-C1#
      spec = [1, 1]
      result1 = Dissonance()(semitoneFreqs, spec)
      result2 = Dissonance()(semitoneFreqs1, spec)
      self.assertEqual(result2, 0)
      self.assertTrue(result1 > result2)
  
file_path: essentia/test/src/unittests/tonal/test_dissonance.py
imports: from essentia_test import *
  from numpy import random, pi, sort
label_desc: Use image node_id 11 for calling the TestDissonance obj's underlying member method code with example usage: obj.testSemitoneAndSemitoneOctaveHigher() without return types