summaryrefslogtreecommitdiff
path: root/scm
diff options
context:
space:
mode:
authorPaul Morris <paulwmorris@gmail.com>2016-04-23 16:04:56 -0400
committerPaul Morris <paulwmorris@gmail.com>2016-05-01 12:22:23 -0400
commitd1ca9346d8e86b873c3cf5511105b0252e6c54ad (patch)
treec98a696b81ad94d09531d726c37bfdce18ad3230 /scm
parentcce6142535a66c88811f7f9f28eba89b8fc3b9a3 (diff)
Issue 4828/2: Add StaffSymbol.ledger-positions-function
Lets the user provide a (quoted) function that is used to determine the list of ledger positions for a given note head position.
Diffstat (limited to 'scm')
-rw-r--r--scm/define-grob-properties.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/scm/define-grob-properties.scm b/scm/define-grob-properties.scm
index dcf9705998..60b9d5b000 100644
--- a/scm/define-grob-properties.scm
+++ b/scm/define-grob-properties.scm
@@ -579,6 +579,9 @@ are added.")
When set on a @code{StaffSymbol} grob it defines a repeating
pattern of ledger lines and any parenthesized groups will always be
shown together.")
+ (ledger-positions-function ,scheme? "A quoted Scheme procedure that
+takes a @code{StaffSymbol} grob and the vertical position of a note head
+as arguments and returns a list of ledger line positions.")
(left-bound-info ,list? "An alist of properties for determining
attachments of spanners to edges.")
(left-padding ,ly:dimension? "The amount of space that is put