[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: override-auto-beam-setting in \layout{} ?
From: |
Carl D. Sorensen |
Subject: |
RE: override-auto-beam-setting in \layout{} ? |
Date: |
Tue, 10 May 2005 10:38:03 -0600 |
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