[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Argument transfer?
From: |
Fairchild |
Subject: |
RE: Argument transfer? |
Date: |
Mon, 6 Jun 2005 13:02:24 -0500 |
Eric, et. al. -
Thanks for the response, even though it hasn't led anywhere.
Let's try the question a couple of other ways.
Can Scheme code be used within a \score block?
Can a variable, defined in the ly file, be reassigned a new value within the
\score block?
If the answers are no, do I have a legitimate feature request?
- Bruce
-----Original Message-----
From: Erik Sandberg [mailto:address@hidden
Sent: Monday, June 06, 2005 10:54 AM
To: address@hidden
Cc: Fairchild
Subject: Re: Argument transfer?
On Monday 06 June 2005 00.17, Fairchild wrote:
> This code is effective:
> %%%%%%%%%%%%%%%%%%%%%%%%
> \version "2.4.3"
> Mag = #3
> BigOn = \override NoteHead #'font-size = \Mag
> \score {\relative c'' {
> c c c c
> \BigOn
> c c c c
> }}
> %%%%%%%%%%%%%%%%%%%%%%%%
>
> This shows what I'd like, but it doesn't work:
> %%%%%%%%%%%%%%%%%%%%%%%% \version "2.4.3"
> BigOn = \override NoteHead #'font-size = \Mag
> \score {\relative c'' {
> c c c c
> Mag = #3
> \BigOn
> c c c c
> }}
> %%%%%%%%%%%%%%%%%%%%%%%%
>
> That is, is there a way to pass a parameter into a define from within
> \score?
Sorry, this is not possible. If you really need it, you can play around with
\include:
Mag = #3
BigOn = \include "BigOn.ly"
.. and let BigOn.ly contain only the "\override.. " line.
Erik