Quoting Graham Percival <[EMAIL PROTECTED]>:
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
-
[EMAIL PROTECTED]
-\midi @{ \tempo 4 . = 120 @}
[EMAIL PROTECTED] example
Is 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
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel