On Mon 16 Jan 2017 at 12:08:28 (+0100), Gianmaria Lari wrote: > I'm sorry, clearly there is a misunderstanding and it is probably from my > side, my apologies. > > Let's me try to explain what I mean. Try to have a look to this code and > the related output (it is attached).
There seem to be two directions in which you want to change LP. The first, which my comment was directed at, was to force writing an unnecessary \relative { } inside another \relative { } construction, going from (in your example) \relative c' { ....somemusic..... \repeat unfold 4 { c e g } ....somemusic..... } to { \repeat unfold 2 \relative c' {c e g} } That's what I directed my "What side effect and exceptional behaviour? The orthogonality between what and what?" at. But your response here addresses a second point, the interpretation of \repeat unfold. Looking at my attached example, it seems to me that you want "\repeat unfold 2 { foo }" to behave like "foo foo" (B and C). But, if that's what you want, why not write "foo foo"? "foo foo" duplicates the notes in the source, but it isn't a textual repeat in the LP sense (like FR, A, D and E). And if you want to automate it for n≫2, find/write a function to do it. I think one source of confusion might be that it's easy to use \repeat unfold as a shorthand for what you want here, and it does work that way at one level. However, it's really something different. Look at the parallels between FR&A, and D&E. People get hoisted on a vaguely similar petard when they think that R1 * 5 is five whole-note-rests when it's more accurate to say it's one five-whole-note-duration-rest that usually gets set as five whole-note-rests. Cheers, David.
\include "addFingering.ly" fragment = {c' d' e' f'} %%\markup "Plain" {\fragment} %%\markup "Inversion" {\inversion c' c' \fragment} %%\markup "Transpose"{\transpose c c, \fragment} %%\markup "T(I())"{\transpose c c, {\inversion c' c' \fragment }} %%\markup "I(T())"{ \inversion c' c' {\transpose c c, \fragment }} %%\markup "repeat" {\repeat unfold 2 \fragment} \markup "addFingering" {\addFingering \fragment #"12"} \markup "R(F())" {\repeat unfold 2 {\addFingering \fragment #"12"}} \markup "F(R())" {\addFingering {\repeat unfold 2 \fragment} #"12"} \markup "A" {\addFingering {\repeat percent 2 \fragment} #"12"} \markup "B" {\addFingering {\fragment \fragment} #"12"} \markup "C" {\addFingering {\fragment \fragment} #"12345"} \markup "D" {\addFingering {\repeat unfold 2 \fragment} #"12345"} \markup "E" {\addFingering {\repeat percent 2 \fragment} #"12345"}
unfold.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user