Hi,
is there a way to discern whether the ly:music? passed into a music
function is a single note-event or a note within a chord?
\version "2.19.80"
testType =
#(define-music-function (music)(ly:music?)
(ly:message "Music type(s): ~a" (ly:music-property music 'types))
music)
{
\clef bass
\testType c
<c \testType e g>
}
prints `Music type(s): (event note-event rhythmic-event melodic-event)`
in both cases.
Is there anything else besides the 'types music-property I can check for
in this context? I hope there is because there are many respects in
which the two would have to be treated differently. Is there maybe a way
to get to a music's "parent" in order to check what type that is?
Thanks
Urs
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user