lilypond-user
[Top][All Lists]
Advanced

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

Re: "inline" (scoped) definitions?


From: Paul Scott
Subject: Re: "inline" (scoped) definitions?
Date: Wed, 14 Jan 2004 20:46:42 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.5) Gecko/20031107 Debian/1.5-3

Kieren Richard MacMillan wrote:

[ Mac OS X 10.2.8;  Lilypond 2.1.7-3 ]

Howdy, y'all!

Just wondering if there's a way to define a directive/variable "inline"?

e.g.

....

[Result (n.b., the same as above) = a4 a a a g2 g c4 c c c g2 g]

or, better still, define it as (during) the first call:

stuff = \notes
{
    a4 a a a
    { g2 g } == innerDef
    c4 c c c
    \innerDef
}

[Result (n.b., the same as above) = a4 a a a g2 g c4 c c c g2 g]

The benefit, of course, would be that you would be able to keep similar definitions "inline" and "together" (e.g., notes in the \notes block, time switches in the \global block, etc.), and in a well-defined "scope", which could help reduce score complexity.

I put notes in separate \notes blocks and time switches in global blocks anyway irrelevant of the usefulness of inner definitions. How do your inner definitions help this? Example?

Paul Scott






reply via email to

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