Re: Discern single note-event from one in a chord

2018-07-01 Thread David Kastrup
Urs Liska writes: > Well, the problem at hand is that I want to apply some styles, say a > color, to the music passed into a music function. And depending on the > type of music this should be done by wrapping the (sequential) music > in \temporary \override .. \revert statements, by creating \tw

Re: Discern single note-event from one in a chord

2018-07-01 Thread Urs Liska
Am 01.07.2018 um 10:04 schrieb David Kastrup: Urs Liska writes: 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

Re: Discern single note-event from one in a chord

2018-07-01 Thread Urs Liska
Am 01.07.2018 um 10:04 schrieb David Kastrup: Urs Liska writes: 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

Re: Discern single note-event from one in a chord

2018-07-01 Thread David Kastrup
Urs Liska writes: > 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 mu

Discern single note-event from one in a chord

2018-07-01 Thread Urs Liska
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