Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
#Parse arguments
main_args = parse_arguments()
#check_args(main_args)
# ----------
# Begin processing audio files here:
# ----------
# Creates a database structure at the location given and returns a list of
# AnalysedAudioObjects for each item in the database
database = af.AudioDatabase(main_args.database)
database.generate_analyses()
"""
#Create audio file instances
input_audio = af.AnalysedAudioFile(main_args.input_file, mode = 'r')
output_audio = af.AnalysedAudioFile(
main_args.output_file,
mode = 'w',
format = input_audio.format(),
channels = input_audio.channels(),
samplerate = input_audio.samplerate()
)
if main_args.verbose > 1:
input_audio.audio_file_info()
output_audio.audio_file_info()
"""