lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: map-some-music question


From: Jay Vara
Subject: Re: map-some-music question
Date: Tue, 7 Oct 2014 16:53:45 +0100

I am trying to display all the names that appear in a piece of music (NoteEvent etc.) using map-some-music. It the function musNam is only printing the top level name. What am I missing here?

%%%%%%%%%%%%%%%%%%%

\version "2.18.2"

#(define (name-of music) (display-scheme-music (ly:music-property music 'name)))

musNam = #(define-music-function (parser location myx ) (ly:music?)

(map-some-music

(lambda (evt) (name-of evt )) myx)

#{ #})

music = {c ~ c}

\musNam #music


%%%%%%%%%%%%%%%%%%%%%




reply via email to

[Prev in Thread] Current Thread [Next in Thread]