Mercurial > hg > simscene-py
view simscene.py @ 3:bfd2651f928c
added minimal usage arguments
author | Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
---|---|
date | Fri, 29 Sep 2017 20:05:23 +0100 |
parents | 6352dffb2d5b |
children | 94eb0280ad4a |
line wrap: on
line source
#!/bin/python # -*- coding: utf-8 -*- # For licensing please see: LICENSE # Copyright (c) Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> import argparse def run_demo(): print("TODO: Implement run_demo()") def simscene(input_path, output_path, scene_duration, score_events, score_backgrounds, **kwargs): print("TODO: Implement simscene()") if __name__=="__main__": argparser = argparse.ArgumentParser( description="SimScene.py audio scene generator", ) argparser.add_argument( '--demo', help="runs a scene generation demo", action='store_true', ) argparser.add_argument( 'input_path', type=str, help="Path of a directory containing wave files for sound backgrounds (in the `background' sub-directory) or events (in `event')" ) argparser.add_argument( '-s', '--scene_duration', type=float, help="Duration of scene in seconds", ) argparser.add_argument( '-e', '--score_events', type=str, help="Score events file as a comma-separated text file (.csv, .txt), JSON (.json), or Excel (.xls) file" ) argparser.add_argument( '-b', '--score_backgrounds', type=str, help="Score backgrounds file as a comma-separated text file (.csv, .txt), JSON (.json), or Excel (.xls) file" ) args = argparser.parse_args() if args.demo: run_demo() elif args.input_path: print(args.input_path) else: argparser.print_usage()