help-gnu-music
[Top][All Lists]
Advanced

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

Re: Parsing arguments


From: Mats Bengtsson
Subject: Re: Parsing arguments
Date: Mon, 26 Feb 2001 10:23:05 +0100

> Why doesn't this work?
> 
> rept = "volta"
> mel = \notes \repeat \rept 2 { c d e f }
> 
> And then, how do I create repeated midi-output together with volted
> paper-output...?

It wouldn't be difficult to change the parser to accept this, 
the problem is that the identifier is replaced during parsing,
so it would not solve your problem unless you do:

rept = "volta"
\include "mel.ly"
\score{
...
\paper{...}
}
rept = "unfold"
\include "mel.ly"
\score{
...
\midi{...}
}

which still is a bit clumsy.

Another option is to use an external preprocessor, like
cpp or m4, see input/les-nereides.ly.

     /Mats






reply via email to

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