diff options
author | Paul Morris <paulwmorris@gmail.com> | 2016-04-23 16:28:27 -0400 |
---|---|---|
committer | Paul Morris <paulwmorris@gmail.com> | 2016-05-01 12:22:24 -0400 |
commit | d773074cfc3eb6dd93664ac15d60c5dfa902a576 (patch) | |
tree | 320da9cdb3dd035e1bcac7eb7991424764c7a0bb /input | |
parent | d1ca9346d8e86b873c3cf5511105b0252e6c54ad (diff) |
Issue 4828/3: Add regtest for custom ledger positions
Diffstat (limited to 'input')
-rw-r--r-- | input/regression/ledger-positions-customization.ly | 27 |
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 +} |