Hi Jean,
> To get 2-digit precision on the number of seconds, you can simply replace
>
> (format #f "~as" (round rest))
>
> with
>
> (format #f "~,2fs" rest)
>
> in the format-time function.
>
> For seconds:frames at 24 frames/second, replace format-time with
>
> (define (format-time secon
> Hi Jean,
>
> As always… remarkable.
>
> One question: How hard would it be to have this output more precise
> timings (e.g., 1/4 or 1/10th or 1/100th of a second, or SMPTE timecode
> in minutes:seconds:frames)? I could imagine this being *very* useful
> for film/video/media composers.
To get
Hi Lukas,
I love that we have two custom engravers to compare and learn from!
Thank you so much for this solution — looking forward to analyzing it when I
have a moment.
Best,
Kieren.
> On Mar 14, 2024, at 5:54 PM, Lukas-Fabian Moser wrote:
>> “This sounds like a job for… Custom Engraver!!” :
Hi Jean,
As always… remarkable.
One question: How hard would it be to have this output more precise timings
(e.g., 1/4 or 1/10th or 1/100th of a second, or SMPTE timecode in
minutes:seconds:frames)? I could imagine this being *very* useful for
film/video/media composers.
Thanks!
Kieren.
> On
On Thu, 14 Mar 2024, Jean Abou Samra wrote:
> > “This sounds like a job for… Custom Engraver!!” :)
>
> #(define (Custom_engraver!! context)
>(define (format-time seconds)
Thanks! I haven't tested this extensively, but so far it looks like it
works well.
--
Matthew Skala
msk...@ansuz.sooke
Hi,
Am 14.03.24 um 17:27 schrieb Kieren MacMillan:
Hi Matthew,
Is there any easy way to find out the time in seconds from the start of a
score to a specified point, corresponding to the timing of the MIDI
output? I can count measures and do math on the tempo, but that's
less than ideal in the
> “This sounds like a job for… Custom Engraver!!” :)
\version "2.24.2"
#(define (Custom_engraver!! context)
(define (format-time seconds)
(let ((minutes (euclidean-quotient seconds 60))
(rest (euclidean-remainder seconds 60)))
(string-append (if (zero? minutes) "" (form
Hi Matthew,
> Is there any easy way to find out the time in seconds from the start of a
> score to a specified point, corresponding to the timing of the MIDI
> output? I can count measures and do math on the tempo, but that's
> less than ideal in the face of multiple tempo changes. Another idea
Is there any easy way to find out the time in seconds from the start of a
score to a specified point, corresponding to the timing of the MIDI
output? I can count measures and do math on the tempo, but that's
less than ideal in the face of multiple tempo changes. Another idea would
be to just cut