Mercurial > code > home > repos > light9
comparison bin/curvecalc @ 435:064d2c9f2014
curvecalc usage message
author | drewp@bigasterisk.com |
---|---|
date | Thu, 12 Jun 2008 06:47:00 +0000 |
parents | e748d6edd375 |
children | fb888a771b42 |
comparison
equal
deleted
inserted
replaced
434:c45ce0c1c733 | 435:064d2c9f2014 |
---|---|
395 root.tk_setPalette("gray50") | 395 root.tk_setPalette("gray50") |
396 toplevelat("curvecalc",root) | 396 toplevelat("curvecalc",root) |
397 root.tk_focusFollowsMouse() | 397 root.tk_focusFollowsMouse() |
398 | 398 |
399 parser = optparse.OptionParser() | 399 parser = optparse.OptionParser() |
400 parser.set_usage("%prog [opts] songURI") | |
400 parser.add_option("--sliders", action='store_true', | 401 parser.add_option("--sliders", action='store_true', |
401 help='use hardware sliders') | 402 help='use hardware sliders') |
402 parser.add_option("--skip-music", action='store_true', | 403 parser.add_option("--skip-music", action='store_true', |
403 help="ignore music and smooth_music curve files") | 404 help="ignore music and smooth_music curve files") |
404 opts, args = parser.parse_args() | 405 opts, args = parser.parse_args() |
405 | 406 |
406 try: | 407 try: |
407 song = URIRef(args[0]) | 408 song = URIRef(args[0]) |
408 except IndexError: | 409 except IndexError: |
409 raise SystemExit("song name is required, e.g. '05-mix'") | 410 raise SystemExit("song URI is required, e.g. 'http://light9.bigasterisk.com/show/dance2008/song3'") |
410 | 411 |
411 log.debug("music") | 412 log.debug("music") |
412 music=Music() | 413 music=Music() |
413 | 414 |
414 zc = Zoomcontrol(root) | 415 zc = Zoomcontrol(root) |