Re: predicate for \lyricmode

2018-03-20 Thread Jan-Peter Voigt
Yes, but you might write one that checks if the music expression does contain elements of a certain type. It is possible, but I can't tell if its reasonable. Am 20. März 2018 17:35:44 MEZ schrieb David Kastrup : >Urs Liska writes: > >> Hi all, >> >> is there a LilyPond predicate for a \lyricmod

Re: predicate for \lyricmode

2018-03-20 Thread Urs Liska
Am 20.03.2018 um 17:35 schrieb David Kastrup: Urs Liska writes: Hi all, is there a LilyPond predicate for a \lyricmode expression? \version "2.19.80" test = #(define-void-function (text)(ly:music?) (display text)) text = \lyricmode { a b c } \test \text does work, so ly:music? accep

Re: predicate for \lyricmode

2018-03-20 Thread David Kastrup
Urs Liska writes: > Hi all, > > is there a LilyPond predicate for a \lyricmode expression? > > \version "2.19.80" > > test = > #(define-void-function (text)(ly:music?) >(display text)) > > text = \lyricmode { a b c } > \test \text > > does work, so ly:music? accepts the lyricmode expression.

predicate for \lyricmode

2018-03-20 Thread Urs Liska
Hi all, is there a LilyPond predicate for a \lyricmode expression? \version "2.19.80" test = #(define-void-function (text)(ly:music?) (display text)) text = \lyricmode { a b c } \test \text does work, so ly:music? accepts the lyricmode expression. But is there a narrower predicate I can u