bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug in event-listener.ly


From: James Lowe
Subject: Re: A bug in event-listener.ly
Date: Sun, 21 Feb 2016 21:02:32 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Fwding to bug list

On 17/12/15 13:39, Richard Shann wrote:
While developing a Playback View in Denemo (music plays back while
LilyPond-typeset SVG is animated, building on Mathieu Demange's work) I
came across a bug in event-listener.ly:

In this procedure

#(define (format-tempo engraver event)
    (print-line engraver
                "tempo"
                ; get length of quarter notes, in seconds
                (/ (ly:event-property event 'metronome-count)
                    (format-moment (ly:duration-length (ly:event-property
                                                        event
                                                        'tempo-unit))))))

The division should be a multiplication, otherwise \tempo Presto 4=480
and \tempo Presto 2=240 result in different tempi being written out.

Richard



_______________________________________________
lilypond-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-devel




--
James

-------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]