code: def analsynthHarmonicMaskStreaming(params, signal):
      out = array([0.0])
  
      pool = essentia.Pool()
      # windowing and FFT
      fcut = es.FrameCutter(
          frameSize=params["frameSize"],
          hopSize=params["hopSize"],
          startFromZero=False,
      )
      w = es.Windowing(type="blackmanharris92")
      fft = es.FFT(size=params["frameSize"])
      spec = es.Spectrum(size=params["frameSize"])
  
      # pitch detection
      pitchDetect = es.PitchYinFFT(
          frameSize=params["frameSize"], sampleRate=params["sampleRate"]
      )
  
      hmask = es.HarmonicMask(
          sampleRate=params["sampleRate"],
          binWidth=params["binWidth"],
          attenuation=params["attenuation_dB"],
      )
  
      ifft = es.IFFT(size=params["frameSize"])
      overl = es.OverlapAdd(
          frameSize=params["frameSize"], hopSize=params["hopSize"]
      )
  
      # add half window of zeros to input signal to reach same ooutput length
      signal = numpy.append(signal, zeros(params["frameSize"] // 2))
      insignal = VectorInput(signal)
  
      # analysis
      insignal.data >> fcut.signal
      fcut.frame >> w.frame
      w.frame >> spec.frame
      w.frame >> fft.frame
      spec.spectrum >> pitchDetect.spectrum
  
      fft.fft >> hmask.fft
      pitchDetect.pitch >> hmask.pitch
      pitchDetect.pitchConfidence >> (pool, "pitchConfidence")
  
      hmask.fft >> ifft.fft
  
      ifft.frame >> overl.frame
      overl.signal >> (pool, "audio")
  
      essentia.run(insignal)
  
      # remove first half window frames
      outaudio = pool["audio"]
      outaudio = outaudio[2 * params["hopSize"] :]
  
      return outaudio, pool
  
file_path: essentia/test/src/unittests/synthesis/test_harmonicmask_streaming.py
imports: from essentia_test import *
  import math
  import essentia
  import essentia.streaming
  import essentia.standard
label_desc: Use image node_id 2 for calling a global function with example usage: analsynthHarmonicMaskStreaming(params, signal) and returns: outaudio,  pool