lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nesting variables inside music


From: Shadok
Subject: Nesting variables inside music
Date: Wed, 12 Mar 2008 16:18:08 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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
}

It is easy to assign x outside (before) melody, but
if melody is long and the need of \x is local, it
would be more understandable to define it only where
needed.

What are the usual practices for that?

Thanks





reply via email to

[Prev in Thread] Current Thread [Next in Thread]