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: Add harmonic/percussive source separation related arguments to an
  existing parser object.
  
  Parameters
  ----------
  parser : argparse parser instance
      Existing argparse parser object.
  masking : float, optional
      Masking; if 'None', binary masking is used.
  harmonic_filter : tuple, optional
      Harmonic filter (frames, bins).
  percussive_filter : tuple, optional
      Percussive filter (frames, bins).
  
  Returns
  -------
  argparse argument group
      Harmonic/percussive source separation argument parser group.
  
  Notes
  -----
  Parameters are included in the group only if they are not 'None'.
docstr_tok: ["Add","harmonic\/percussive","source","separation","related","arguments","to","an","existing","parser","object",".","Parameters","--","--","--","--","--","parser",":","argparse","parser","instance","Existing","argparse","parser","object",".","masking",":","float",",","optional","Masking",";","if","'None","'",",","binary","masking","is","used",".","harmonic_filter",":","tuple",",","optional","Harmonic","filter","(","frames",",","bins",")",".","percussive_filter",":","tuple",",","optional","Percussive","filter","(","frames",",","bins",")",".","Returns","--","--","--","-","argparse","argument","group","Harmonic\/percussive","source","separation","argument","parser","group",".","Notes","--","--","-","Parameters","are","included","in","the","group","only","if","they","are","not","'None","'","."]
code: def add_arguments(
      parser, masking=None, harmonic_filter=None, percussive_filter=None
  ):
      """
      Add harmonic/percussive source separation related arguments to an
      existing parser object.
  
      Parameters
      ----------
      parser : argparse parser instance
          Existing argparse parser object.
      masking : float, optional
          Masking; if 'None', binary masking is used.
      harmonic_filter : tuple, optional
          Harmonic filter (frames, bins).
      percussive_filter : tuple, optional
          Percussive filter (frames, bins).
  
      Returns
      -------
      argparse argument group
          Harmonic/percussive source separation argument parser group.
  
      Notes
      -----
      Parameters are included in the group only if they are not 'None'.
  
      """
      # add harmonic/percussive related options to the existing parser
      g = parser.add_argument_group(
          "harmonic/percussive source separation " "related arguments"
      )
      if masking is not None:
          g.add_argument(
              "--filter_type",
              action="store",
              type=float,
              default=masking,
              help="masking coefficient [default=%(default).2f]",
          )
      if harmonic_filter is not None:
          g.add_argument(
              "--harmonic_filter",
              action="store",
              default=harmonic_filter,
              help="harmonic filter size (frames, bins) "
              "[default=%(default)s]",
          )
      if percussive_filter is not None:
          g.add_argument(
              "--percussive_filter",
              action="store",
              default=percussive_filter,
              help="percussive filter size (frames, bins) "
              "[default=%(default)s]",
          )
      # return the argument group so it can be modified if needed
      return g
  
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 5 for calling the HarmonicPercussiveSourceSeparation obj's underlying member method code with example usage: obj.add_arguments(parser, masking, harmonic_filter, percussive_filter) and returns: g