comparison bin/curvecalc @ 1097:f7618f29bb89

rewrite CurveSet. remove sliders support from curvecalc. curve edits now write quickly to the graph. Ignore-this: d0338e3a21636d992958594e878962e
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 09 Jun 2014 03:05:32 +0000
parents 9ea123a24320
children 95ed52dcc3ab
comparison
equal deleted inserted replaced
1096:087f6cbe4b22 1097:f7618f29bb89
447 predicate=L9['currentSong'], 447 predicate=L9['currentSong'],
448 newObject=song) 448 newObject=song)
449 except IndexError: 449 except IndexError:
450 pass 450 pass
451 451
452 curveset = Curveset(graph=graph, session=session, sliders=opts.sliders) 452 curveset = Curveset(graph=graph, session=session)
453 453
454 log.debug("startup: output %s", time.time() - startTime) 454 log.debug("startup: output %s", time.time() - startTime)
455 455
456 mt = MaxTime(graph, session) 456 mt = MaxTime(graph, session)
457 dispatcher.connect(lambda: mt.get(), "get max time", weak=False) 457 dispatcher.connect(lambda: mt.get(), "get max time", weak=False)
482 482
483 def main(): 483 def main():
484 startTime = time.time() 484 startTime = time.time()
485 parser = optparse.OptionParser() 485 parser = optparse.OptionParser()
486 parser.set_usage("%prog [opts] [songURI]") 486 parser.set_usage("%prog [opts] [songURI]")
487 parser.add_option("--sliders", action='store_true',
488 help='use hardware sliders')
489 parser.add_option("--debug", action="store_true", 487 parser.add_option("--debug", action="store_true",
490 help="log at DEBUG") 488 help="log at DEBUG")
491 parser.add_option("--reload", action="store_true", 489 parser.add_option("--reload", action="store_true",
492 help="live reload of themes and code") 490 help="live reload of themes and code")
493 parser.add_option("--startup-only", action='store_true', 491 parser.add_option("--startup-only", action='store_true',