code: def getBPF(signalNeeded):
      midi_note = int(float(signalNeeded[-2:]))
  
      fc0 = 440.0 * np.power(semitone, midi_note)
      fc1 = 440.0 * np.power(
          semitone, midi_note + 2 * 12 + 1
      )  # 2 octaves
      bandwidth = fc1 - fc0
      cutoffFrequency = (fc0 + fc1) / 2.0
      BPF = BandPass(
          bandwidth=bandwidth,
          cutoffFrequency=cutoffFrequency,
          sampleRate=fs,
      )
      signal = essentia.array(BPF(getWhiteNoise()))
      # Normalization
      signal = signal / max(signal)
  
      return signal
  
file_path: essentia/test/src/qa/hpcp/test_hpcp_generatesignals.py
imports: import random
  import numpy
  from scipy.signal import spectrogram
  import essentia
  from essentia.standard import *
  from test_hpcp_parameters import *
label_desc: Use image node_id 6 for calling a global function with example usage: getBPF(signalNeeded) and returns: signal