On 2020-09-17 3:18 am, Lukas-Fabian Moser wrote:
I think what triggered my feeling uncomfortable was just the slight
mismatch between the name of the predicate (tempo?) and the actual
tests it contained. Maybe some verbose thing like
music-with-tempo-definition? would make things clearer.
I likely erred too far on the side of brevity.
On review, I probably would ignore the custom type predicate altogether,
simply using ly:music? instead. Then within the function body add in
the logic to extract the \tempo command and provide meaningful
diagnostic messages to help users with the function should the provided
music not be appropriate.
-- Aaron Hill