Am 24.10.2014 um 21:48 schrieb Thomas Morley:
2014-10-24 21:19 GMT+02:00 Simon Albrecht <simon.albre...@mail.de>:
[...]
I tried to, but somehow an
extender line inside a music function body gives a syntax error and I’ve got
no clue how to circumvent that. You’ll find the current function attached.
Can anyone help, please?
No attachment ;)
Always the same mistakes… sorry ;-/
Yours, Simon
\version "2.19.12"
ext = #(define-music-function (parser location voice syl) (symbol? ly:music?)
(let*
((s? (eq? voice 'S))
(a? (eq? voice 'A))
(t? (eq? voice 'T))
(b? (eq? voice 'B))
(others (cond (s? '(A T B))
(a? '(S T B))
(t? '(S A B))
(b? '(S A T)))))
#{ \lyricmode { \tag $voice { $syl __ }
\tag $others $syl } #}))
music = << { c( d) e f }
\addlyrics { \ext A Will it work? } >>
\keepWithTag A \music
\keepWithTag B \music
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user