Please forgive my earlier example, which I had not tested thoroughly. Consider the example below instead, and the attached output.
It shows some variations that could be useful when storing musical phrases in a variable, while retaining some flexibility with ties leading into or out of the phrase. I was puzzled that f ~ \music works, but it appears that \music ~ f does not. Is this correct, or am I still confused? I guess if I have to ask, .... Thanks again, Jim \version "2.16.1" one = \relative c' { f1 ~ } % trailing ties are possible two = \relative c' { f1 } %three = \relative c' { ~ f1 } % this syntax doesn't compile \score { \new Staff { \relative c' { % this compiles, but doesn't render correctly, no tie in measures 1-2 \one f1 % measure 3 does correctly tie into measure 4 \one f8 r2.. \break % this works now in measures 5-6, even though it didn't in measures 1-2 \one f1 \break % moving the trailing tie outside the variable doesn't compile % \two ~ f1 \break % this works, using the trailing tie to connect measures 7-8 \one \two \break % this works to tie measures 9, 10 and 11 f1 ~ \one f1 \break % this can't work because the definition of three doesn't compile % f1 \three \break } } }
tiny.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user