Kieren MacMillan <kie...@kierenmacmillan.info> writes: > Hi again, > > I’m a little confused that the output of > > %%% SNIPPET BEGINS > \version "2.25.11" > > adjustPitch = > #(define-music-function (pitchIn pitchOut music) (ly:pitch? ly:pitch? > ly:music?) > (music-map > (lambda (m) > (ly:message "Pitch is: ~a" (ly:music-property m 'pitch)) m) > music)) > > \adjustPitch es es \fixed c' { c4 d e f g a b c' } > %%% SNIPPET ENDS > > is > > Pitch is: #<Pitch c' > > Pitch is: #<Pitch d' > > Pitch is: #<Pitch e' > > Pitch is: #<Pitch f' > > Pitch is: #<Pitch g' > > Pitch is: #<Pitch a' > > Pitch is: #<Pitch b' > > Pitch is: #<Pitch c'' > > Pitch is: () > Pitch is: () > > What is causing the last two output lines?
Well, what do you think should be the pitch of { c4 d e f g a b c' } and of \fixed c' { c4 d e f g a b c' } ? If you want to only look at note events, you need to check for them yourself. music-map is not discriminating. -- David Kastrup