Re: elementary macro problem

2017-07-21 Thread David Griffel
Thank you, David and Simon, I see there's no straightforward solution, so I'll stick with the standard syntax. best wishes, David G On Fri, Jul 21, 2017 at 6:54 PM, Simon Albrecht wrote: > On 21.07.2017 16:22, David Griffel wrote: > >> I just want a short abbreviation of \repeat unfold >> > >

Re: elementary macro problem

2017-07-21 Thread David Kastrup
caag...@gmail.com writes: >> On 07/21/2017 04:36 PM, David Kastrup wrote: >>> Basically, to give \repeat the kind of pliability that music functions >>> enjoy, one would need to come up with different syntax/semantics for >>> alternatives. > > How about \repeat volta 2 { c1 d1 e1 \alternative {{d1

Re: elementary macro problem

2017-07-21 Thread Simon Albrecht
On 21.07.2017 16:22, David Griffel wrote: I just want a short abbreviation of \repeat unfold I can understand that wish, but if I may give some advice from experience: even if it’s partially possible, it’s generally better to not abbreviate and stay with standard syntax. It’s easier to mainta

Re: elementary macro problem

2017-07-21 Thread caagr98
How about \repeat volta 2 { c1 d1 e1 \alternative {{d1} {f1}} }? IMO, that makes more sense both syntactically and semantically - the way I see it, that example is four measures repeated, with the last measure being different. With the current syntax, it's three measures repeated, and... wtf is

Re: elementary macro problem

2017-07-21 Thread David Kastrup
David Griffel writes: > I'm a fairly inexpert lilypond user. I've used simple macros before, but > this one fails: > > thrice = \repeat unfold 3 Because there isn't a complete music expression following. > it produces an error message: error: unknown escaped string: `\thrice' > > Minimal examp

Re: elementary macro problem

2017-07-21 Thread caagr98
If you're using 2.19, you might be able to use `thrice = \repeat unfold 3 \etc`. Otherwise, you'll have to use the explicit version. On 07/21/2017 04:22 PM, David Griffel wrote: I'm a fairly inexpert lilypond user. I've used simple macros before, but this one fails: thrice = \repeat unfold 3