class_docstr: HarmonicPercussiveSourceSeparation is a Processor which separates the
  magnitude spectrogram into its harmonic and percussive components with
  median filters.
  
  Parameters
  ----------
  masking : float or str
      Can be either the literal 'binary' or any float coefficient resulting
      in a soft mask. 'None' translates to a binary mask, too.
  harmonic_filter : tuple of ints
      Tuple with harmonic filter size (frames, bins).
  percussive_filter : tuple of ints
      Tuple with percussive filter size (frames, bins).
  
  References
  ----------
  .. [1] Derry FitzGerald,
         "Harmonic/percussive separation using median filtering.",
         Proceedings of the 13th International Conference on Digital Audio
         Effects (DAFx), Graz, Austria, 2010.
docstr: Returns the masks given the harmonic and percussive slices.
  
  Parameters
  ----------
  harmonic_slice : numpy array
      Harmonic slice.
  percussive_slice : numpy array
      Percussive slice.
  
  Returns
  -------
  harmonic_mask : numpy array
      Harmonic mask.
  percussive_mask : numpy array
      Percussive mask.
docstr_tok: ["Returns","the","masks","given","the","harmonic","and","percussive","slices",".","Parameters","--","--","--","--","--","harmonic_slice",":","numpy","array","Harmonic","slice",".","percussive_slice",":","numpy","array","Percussive","slice",".","Returns","--","--","--","-","harmonic_mask",":","numpy","array","Harmonic","mask",".","percussive_mask",":","numpy","array","Percussive","mask","."]
code: def masks(self, harmonic_slice, percussive_slice):
      """
      Returns the masks given the harmonic and percussive slices.
  
      Parameters
      ----------
      harmonic_slice : numpy array
          Harmonic slice.
      percussive_slice : numpy array
          Percussive slice.
  
      Returns
      -------
      harmonic_mask : numpy array
          Harmonic mask.
      percussive_mask : numpy array
          Percussive mask.
  
      """
      # compute the masks
      if self.masking in (None, "binary"):
          # return binary masks
          harmonic_mask = harmonic_slice > percussive_slice
          percussive_mask = percussive_slice >= harmonic_slice
      else:
          # return soft masks
          p = float(self.masking)
          harmonic_slice_ = harmonic_slice**p
          percussive_slice_ = percussive_slice**p
          slice_sum_ = harmonic_slice_ + percussive_slice_
          harmonic_mask = harmonic_slice_ / slice_sum_
          percussive_mask = percussive_slice_ / slice_sum_
      # return the masks
      return harmonic_mask, percussive_mask
  
file_path: madmom/madmom/audio/hpss.py
imports: from __future__ import absolute_import, division, print_function
  import numpy
  from madmom.processors import Processor
label_desc: Use image node_id 3 for calling the HarmonicPercussiveSourceSeparation obj's underlying member method code with example usage: obj.masks(harmonic_slice, percussive_slice) and returns: harmonic_mask,  percussive_mask