|
From: | Mats Bengtsson |
Subject: | Re: lilypond ChangeLog Documentation/user/examples.... |
Date: | Sun, 27 Aug 2006 08:43:41 +0200 |
User-agent: | Internet Messaging Program (IMP) H3 (4.0.5) |
Quoting Graham Percival <address@hidden>:
Han-Wen Nienhuys wrote:-A number followed by a period is interpreted as a real number, so -for setting the tempo for dotted notes, an extra space should be -inserted, for example - address@hidden -\midi @{ \tempo 4 . = 120 @} address@hidden exampleIs this really the new way to do it? \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 120 4) } }I'm sure that there's some reason why "\tempo x = y" is a horrible construct and must be replaced, but\context { \Score tempoWholesPerMinute = #(ly:make-moment y x) }looks unnecessarily complicated. If that's the way it's going to be, I'll document it, but... why this? Do we want to allow users to have different tempo in different Staff contexts?
Apart from looking complicated, I find it directly confusing. If you told me that the property name was "tempoWholesPerMinute", I would intuitively expect the value to be a real number. Here it seems that we (mis)use ly:make-moment to represent a rational number. Of course, that's convenient as long as the beat isn't a dotted note, since you can just set x as the
duration of the beat, but it still requires quite some amount of thinking the first time you see it. /Mats
[Prev in Thread] | Current Thread | [Next in Thread] |