Re: predicate for \lyricmode
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 \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 use to expect lyrics to be arguments for a >> function? > >No. It's just an ordinary music expression containing different >elements conveniently entered with \lyricmode . > >-- >David Kastrup > >___ >lilypond-user mailing list >lilypond-user@gnu.org >https://lists.gnu.org/mailman/listinfo/lilypond-user -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: predicate for \lyricmode
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? accepts the lyricmode expression. But is there a narrower predicate I can use to expect lyrics to be arguments for a function? No. It's just an ordinary music expression containing different elements conveniently entered with \lyricmode . Thank you. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: predicate for \lyricmode
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. But is there > a narrower predicate I can use to expect lyrics to be arguments for a > function? No. It's just an ordinary music expression containing different elements conveniently entered with \lyricmode . -- David Kastrup ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user