lilypond-user
[Top][All Lists]
Advanced

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

Re: Argument transfer?


From: Mats Bengtsson
Subject: Re: Argument transfer?
Date: Tue, 07 Jun 2005 10:35:38 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

If you want parameterized macros in your scores, I would recommend
to use Scheme functions. You can find several examples in the
mailing list archives and in the documentation.

  /Mats

Erik Sandberg wrote:
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


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================




reply via email to

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