Nesting variables inside music

2008-03-12 Thread Shadok
Hi, I am new to LilyPond and I wonder how to use local variables inside a music expression. I searched the list archives but did not find anything. Something like: melody = { c'8 d' e' % long here x = {g e' c'' b''8} % local assignment \x c \x d \x e % use it % long after }

Re: Nesting variables inside music

2008-03-12 Thread Mats Bengtsson
Unfortunately, variables can only be defined at the top level, but it's not uncommon to see one or several variables used in the definition of another one. /Mats Shadok wrote: Hi, I am new to LilyPond and I wonder how to use local variables inside a music expression. I searched the list