diff bin/curvecalc @ 454:fb888a771b42

curvecalc now starts up showing the whole time range
author drewp@bigasterisk.com
date Sun, 15 Jun 2008 23:11:48 +0000
parents 064d2c9f2014
children 9ed6c40b3d6a
line wrap: on
line diff
--- a/bin/curvecalc	Sun Jun 15 01:55:46 2008 +0000
+++ b/bin/curvecalc	Sun Jun 15 23:11:48 2008 +0000
@@ -433,6 +433,7 @@
 maxtime = wavelength(musicfilename)
 dispatcher.send("max time",maxtime=maxtime)
 dispatcher.connect(lambda: maxtime, "get max time",weak=0)
+dispatcher.send("show all")
 curveset.load(basename=os.path.join(showconfig.curvesDir(),
                                     showconfig.songFilenameFromURI(song)),
               skipMusic=opts.skip_music)
@@ -461,7 +462,7 @@
 root.bind("<Control-Key-r>", lambda evt: dispatcher.send('reload all subs'))
 
 create_status_lines(root)
-for helpline in ["Bindings: C-s save subterms;  Esc see current time; S-Esc see curtime to end; Mousewheel zoom; C-p play/pause music at mouse",
+for helpline in ["Bindings: C-s save subterms;  Esc see current time; S-Esc see curtime to end; C-Esc show all; Mousewheel zoom; C-p play/pause music at mouse",
                  "Curve point bindings: B1 drag point; C-B1 curve add point; S-B1 sketch points; Del selected points; 1..5 add point at time; B1 drag select points",
                  "Available in functions: nsin/ncos period=amp=1; within(a,b) bef(x) aft(x) compare to time; smoove(x) cubic smoothstep; chan(name); curvename(t) eval curve"]:
     tk.Label(root,text=helpline, font="Helvetica -12 italic",