Mats wrote:
>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 think you can use the Scheme function chain-assoc-get to get the value
of any property. In fret-diagrams.scm I used the function to get the
value of 'top-fret-thickness.
(chain-assoc-get 'top-fret-thickness props 3.0)
This code returnd the value of 'top-fret-thickness if it is defined in
the alist-chain props. If 'top-fret-thickness is not defined, it
returns the value of 3.0.
Carl Sorensen
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user