On 21/06/2024 17:36, Kieren MacMillan wrote:
Hi Lukas!

All right… already back for more specific help.

I struggled with map-some-music, and failed. Scanned through Jean’s [amazing] 
“Extending” docs — yes, yes, I need to RTM on that one, page-by-page! — and 
found an example with music-map, so tried that instead. Also failed.

Your lambda function for the mapping returns the value of ly:message, which is #<unspecified>. You need to return some music. Changing the lambda function to

(lambda (m) (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m)

maps the music to itself without any changes.

--
Timothy Lanfear, Bristol, UK.

Reply via email to