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.

%%%  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)))
    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

Helps/Hints appreciated.
Kieren
______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.


Reply via email to