|
From: | Robin Bannister |
Subject: | Re: A barline half length long |
Date: | Wed, 11 Nov 2009 18:38:17 +0100 |
What is wrong with my syntax, please?
ly:bar-line::calc-bar-size needs a parameter. If you get used to writing things like
you think that is all you ever need to say. But the functions for grob properties like #'bar-size all need to be told which grob to work with; this is done here implicitly. To use this function anywhere else you have to say\override Staff.BarLine #'bar-size = #ly:bar-line::calc-bar-size
i.e. you have to explicitly give it a grob as a parameter. The function you are making should in turn be written to expect a grob as a parameter and it is this info that you can relay to the default function.(ly:bar-line::calc-bar-size grob)
\override Staff.BarLine #'bar-size = #(lambda (grob) (* (ly:bar-line::calc-bar-size grob) 0.5))
Cheers, Robin
[Prev in Thread] | Current Thread | [Next in Thread] |