[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: override-auto-beam-setting in \layout{} ?
From: |
Mats Bengtsson |
Subject: |
Re: override-auto-beam-setting in \layout{} ? |
Date: |
Tue, 10 May 2005 16:41:58 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050414 |
See http://lists.gnu.org/archive/html/lilypond-devel/2005-01/msg00123.html
The score-override-auto-beam-setting function is included in LilyPond
by now, so there's no need to copy the Scheme code in the answer.
The first alternative in the answer cited above can be rewritten in
a slightly smoother form:
#(define-public (layout-override-auto-beam-setting setting num den)
(cons (cons setting (ly:make-moment num den))
default-auto-beam-settings))
\layout{
\context{
\Score
autoBeamSettings = #(layout-override-auto-beam-setting '(end * * 5
8) 2 8)
}
}
The problem is that you can't call it several times if you want to add
several settings, since it only appends to default-auto-beam-settings.
I didn't find any Scheme function that can be used within a
\layout{\context{...}} to read the current value of a context property.
/Mats
Graham Percival wrote:
Can I specify something like
#(override-auto-beam-setting '(end * * 5 8) 3 8)
in a \layout{ \context { \Score foo }}} ?
I'd like to specify a number of irregular beaming settings in a file
which can be \include'd in many other files. I know how to do that
with regular \set and \override commands, but #(override-auto...)
seems to behave a bit differently.
Cheers,
- Graham
_______________________________________________
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
=============================================
- Re: override-auto-beam-setting in \layout{} ?,
Mats Bengtsson <=