[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Stopwatch time in markup
From: |
Mark Polesky |
Subject: |
Re: Stopwatch time in markup |
Date: |
Sat, 24 Jan 2009 12:49:04 -0800 (PST) |
Don't forget you can store all the formatting as a music-function:
timestamp =
#(define-music-function (parser location minutes seconds) (number? number?)
(let ((min (number->string minutes)) (sec (number->string seconds)))
#{ \mark \markup \rounded-box \small \concat { $min ′ $sec ″ } #}))
{ c'1 \timestamp #4 #33 c' }
And solely out of paranoia, here's a version that doesn't rely on
the special utf-8 characters -- in case my prime and double-prime
characters above get corrupted on the way to your mailbox/browser:
timestamp =
#(define-music-function (parser location minutes seconds) (number? number?)
(let ((min (number->string minutes)) (sec (number->string seconds)))
#{ \mark \markup \rounded-box \small \concat
{ $min \char ##x2032 $sec \char ##x2033 } #}))
{ c'1 \timestamp #4 #33 c' }
- Mark
- Re: Stopwatch time in markup, (continued)
- Re: Stopwatch time in markup, Neil Thornock, 2009/01/23
- Re: Stopwatch time in markup, Tom Hall, 2009/01/23
- Re: Stopwatch time in markup, James E. Bailey, 2009/01/23
- Re: Stopwatch time in markup, Mark Polesky, 2009/01/23
- Re: Stopwatch time in markup, Ole Schmidt, 2009/01/24
- Re: Stopwatch time in markup, James E. Bailey, 2009/01/24
- Re: Stopwatch time in markup, Ole Schmidt, 2009/01/24
- Re: Stopwatch time in markup, Tom Hall, 2009/01/24
- Re: Stopwatch time in markup, James E. Bailey, 2009/01/24
- Re: Stopwatch time in markup, James E. Bailey, 2009/01/24
Re: Stopwatch time in markup,
Mark Polesky <=
Re: Stopwatch time in markup, Tim Reeves, 2009/01/26
Re: Stopwatch time in markup, Carl D. Sorensen, 2009/01/26