[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sacred Harp Repeats
From: |
Malte Meyn |
Subject: |
Re: Sacred Harp Repeats |
Date: |
Wed, 11 Sep 2019 16:05:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.0 |
Am 11.09.19 um 15:46 schrieb Anzick:
276_-_Worlds_Beyond_The_Sky.ly
<http://lilypond.1069038.n5.nabble.com/file/t5844/276_-_Worlds_Beyond_The_Sky.ly>
SHRepeats.ly <http://lilypond.1069038.n5.nabble.com/file/t5844/SHRepeats.ly>
Hello, I have been able to get the sacred harp style repeats to show. Does
anyone know how to make them work? I've included the files I am using.
You have to adapt the code to the LilyPond version you’re using:
1. The grob property for the bar line type is now called 'glyph, not
'glyph-name.
2. The repeat bar lines are now ".|:" and ":|.", not "|:" and ":|".
#(define (with-shapenote-repeats grob)
(let ((g-n (ly:grob-property grob 'glyph)))
(cond
((string=? g-n ":") (dotFn grob))
((string=? g-n ".|:") (barDotSt grob))
((string=? g-n ":|.") (barDotFn grob))
((string=? g-n "|.") (barDotFnD grob))
(else (ly:bar-line::print grob)))))