summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorPaul Morris <paulwmorris@gmail.com>2016-04-23 16:28:27 -0400
committerPaul Morris <paulwmorris@gmail.com>2016-05-01 12:22:24 -0400
commitd773074cfc3eb6dd93664ac15d60c5dfa902a576 (patch)
tree320da9cdb3dd035e1bcac7eb7991424764c7a0bb /input
parentd1ca9346d8e86b873c3cf5511105b0252e6c54ad (diff)
Issue 4828/3: Add regtest for custom ledger positions
Diffstat (limited to 'input')
-rw-r--r--input/regression/ledger-positions-customization.ly27
1 files changed, 27 insertions, 0 deletions
diff --git a/input/regression/ledger-positions-customization.ly b/input/regression/ledger-positions-customization.ly
new file mode 100644
index 0000000000..9fd2fc0d49
--- /dev/null
+++ b/input/regression/ledger-positions-customization.ly
@@ -0,0 +1,27 @@
+
+\header {
+
+texidoc = "3 ways to customize ledger line positions."
+
+}
+
+\version "2.19.41"
+\paper { ragged-right = ##t }
+
+\relative {
+ \override Staff.StaffSymbol.ledger-positions = #'(7 10)
+ f''4 g a b c d e f g a b c
+}
+
+\relative {
+ % note: the scheme procedure (lambda expression) is quoted
+ \override Staff.StaffSymbol.ledger-positions-function =
+ #'(lambda (staff-symbol-grob pos) (list pos))
+ c'''4 d e f
+}
+
+\relative {
+ c'''4
+ \once \override NoteHead.ledger-positions = #'(8 10 12 14)
+ d e f
+}