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
[email protected]
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: [EMAIL PROTECTED]
WWW: http://www.s3.kth.se/~mabe
=============================================
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user