- description=_("A Music Sampler application."),
- formatter_class=argparse.ArgumentDefaultsHelpFormatter)
- parser.add_argument("-c", "--config",
- default="config.yml",
- required=False,
- help=_("Config file to load"))
- parser.add_argument("-p", "--music-path",
- default=".",
- required=False,
- help=_("Folder in which to find the music files"))
- parser.add_argument("-d", "--debug",
- nargs=0,
- action=DebugModeAction,
- help=_("Print messages in console"))
- parser.add_argument("-m", "--builtin-mixing",
- action="store_true",
- help=_("Make the mixing of sounds manually\
- (do it if the system cannot handle it correctly)"))
- parser.add_argument("-l", "--latency",
- default="high",
- required=False,
- help=_("Latency: low, high or number of seconds"))
- parser.add_argument("-b", "--blocksize",
- default=0,
- type=int,
- required=False,
- help=_("Blocksize: If not 0, the number of frames to take\
- at each step for the mixer"))
- parser.add_argument("-f", "--frame-rate",
- default=44100,
- type=int,
- required=False,
- help=_("Frame rate to play the musics"))
- parser.add_argument("-x", "--channels",
- default=2,
- type=int,
- required=False,
- help=_("Number of channels to use"))
- parser.add_argument("-s", "--sample-width",
- default=2,
- type=int,
- required=False,
- help=_("Sample width (number of bytes for each frame)"))