Guitar half-barred or full-barred: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
m Lemzwerg moved page Guitar half-Barred or full-Barred to Guitar half-barred or full-barred without leaving a redirect: Only the first letter of a title should be uppercase |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 39: | Line 39: | ||
[[Category:Editorial annotations]] | [[Category:Editorial annotations]] | ||
[[Category:Specific notation]] | [[Category:Specific notation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 05:37, 24 November 2025
Guitar bar chords with condition, full-Barred ##f, half-Barred ##t,
\version "2.24"
%Bar chord (barred) condition full-Barred ##f,
%modify translate #'(0.18 . 0.20) for adjust vertical line in the B barred
startBb = #(define-event-function (txt1 arg)(markup? boolean?)
#{
\tweak bound-details.left.text \markup\normal-text\concat{
#(if arg
#{ \markup\combine "B" \translate #'(0.18 . 0.20) "|" #}
#{ \markup "B" #})
\tiny $txt1
}
\tweak dash-period 0.8
\tweak style #'line %comment for dashed-line
\tweak bound-details.left.stencil-align-dir-y #0
\tweak bound-details.left-broken.text ##f
\tweak bound-details.left-broken.attach-dir -1
\tweak bound-details.left-broken.padding 1.5
\tweak bound-details.right.padding -1.5 %pos x vertical line
\tweak bound-details.right.attach-dir 2
\tweak bound-details.right-broken.text ##f
\tweak bound-details.right.text
\markup
\with-dimensions #'(0 . 0) #'(-.3 . 0)
\draw-line #'(0 . -1)
\startTextSpan
#})
%syntax: note (or chord)\startBb"fret_number" ##t (or ##f) note(s) \stopTextSpan
\relative c' {
g8\startBb "III" ##f c g' bes \stopTextSpan a4 g4
c8\startBb "V" ##t e8 a fis \stopTextSpan e4 d4
}