<s> '''<STR_LIT>''' <EOL> from __future__ import print_function <EOL> import argparse <EOL> import sys <EOL> import librosa <EOL> def hpss_demo ( input_file , output_harmonic , output_percussive ) : <EOL> '''<STR_LIT>''' <EOL> print ( '<STR_LIT>' , input_file ) <EOL> y , sr = librosa . load ( input_file ) <EOL> print ( '<STR_LIT>' ) <EOL> y_harmonic , y_percussive = librosa . effects . hpss ( y ) <EOL> print ( '<STR_LIT>' , output_harmonic ) <EOL> librosa . output . write_wav ( output_harmonic , y_harmonic , sr ) <EOL> print ( '<STR_LIT>' , output_percussive ) <EOL> librosa . output . write_wav ( output_percussive , y_percussive , sr ) <EOL> def process_arguments ( args ) : <EOL> '''<STR_LIT>''' <EOL> parser = argparse . ArgumentParser ( description = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> help = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> help = '<STR_LIT>' ) <EOL> return vars ( parser . parse_args ( args ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> parameters = process_arguments ( sys . argv [ <NUM_LIT:1> : ] ) <EOL> hpss_demo ( parameters [ '<STR_LIT>' ] , <EOL> parameters [ '<STR_LIT>' ] , <EOL> parameters [ '<STR_LIT>' ] ) </s>
