Hi Kieren,
Am 21.06.24 um 16:39 schrieb Kieren MacMillan:
%%% SNIPPET BEGINS
\version "2.25.11"
adjustPitch =
#(define-music-function (pitchIn pitchOut music) (ly:music? ly:music? ly:music?)
(ly:message "Pitch is: ~a" (ly:pitch-notename (ly:music-property pitchIn
'pitch)))
music)
melody = {
c'2 g'2 es'2. d'4 |
c' es' d' c' |
b d' g2
}
\adjustPitch es es \fixed c' { c d e f g a b c' }
%%% SNIPPET ENDS
This does exactly what it says on the can. Now I want to “map” the message
[stand-in] function to the music provided, so it outputs the pitch for each
note in the 'music' input.
Is map-some-music the correct next move?
Yes. I take it you're only asking for confirmation you're on the right
track? :-)
So I only suggest use the ly:pitch? predicate for pitchIn/pitchOut
instead of ly:music?.
Lukas