Module Expr Str ImportFrom alias Import alias Import alias Import alias FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Call NameLoad Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Return Call NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str
N/A N/A CREATED:2013-12-08 14:28:34 by Brian McFee <brm2132@columbia.edu>

Demonstration of harmonic-percussive source separation
 __future__ print_function N/A argparse N/A sys N/A librosa hpss_demo N/A N/A input_file output_harmonic output_percussive N/A N/A N/A HPSS demo function.

    :parameters:
      - input_file : str
          path to input audio
      - output_harmonic : str
          path to save output harmonic (wav)
      - output_percussive : str
          path to save output harmonic (wav)
     N/A N/A print Loading  input_file N/A N/A y sr N/A N/A librosa load input_file N/A N/A print Separating harmonics and percussives...  N/A N/A y_harmonic y_percussive N/A N/A N/A librosa effects hpss y N/A N/A print Saving harmonic audio to:  output_harmonic N/A N/A N/A N/A librosa output write_wav output_harmonic y_harmonic sr N/A N/A print Saving percussive audio to:  output_percussive N/A N/A N/A N/A librosa output write_wav output_percussive y_percussive sr N/A process_arguments N/A N/A args N/A N/A N/A Argparse function to get the program parameters N/A parser N/A N/A argparse ArgumentParser description harmonic-percussive example N/A N/A N/A parser add_argument input_file action store help path to the input file (wav, mp3, etc) N/A N/A N/A parser add_argument output_harmonic action store help path to the harmonic output (wav) N/A N/A N/A parser add_argument output_percussive action store help path to the percussive output (wav) N/A N/A vars N/A N/A parser parse_args args N/A N/A N/A __name__ __main__ N/A N/A parameters N/A process_arguments N/A N/A sys argv N/A 1 N/A N/A hpss_demo N/A parameters N/A input_file N/A parameters N/A output_harmonic N/A parameters N/A output_percussive