Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(59)

Unified Diff: Documentation/snippets/new/analysis-brackets-with-labels.ly

Issue 315570043: Let analysis brackets support text (Closed)
Patch Set: reflect review Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Documentation/notation/editorial.itely ('k') | input/regression/horizontal-bracket-broken-texted.ly » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Documentation/snippets/new/analysis-brackets-with-labels.ly
diff --git a/Documentation/snippets/new/analysis-brackets-with-labels.ly b/Documentation/snippets/new/analysis-brackets-with-labels.ly
new file mode 100644
index 0000000000000000000000000000000000000000..30ae349b05bfc5960454af299f53ed464afa8a4f
--- /dev/null
+++ b/Documentation/snippets/new/analysis-brackets-with-labels.ly
@@ -0,0 +1,38 @@
+\version "2.19.55"
+
+\header {
+ lsrtags = "editorial-annotations, tweaks-and-overrides"
+
+ texidoc = "
+Text may be added to analysis brackets through the @code{text} property
+of the @code{HorizontalBracketText} grob. Adding different texts to
+brackets beginning at the same time requires the @code{\tweak} command.
+Bracket text will be parenthesized after a line break.
+
+"
+ doctitle = "Analysis brackets with labels"
+}
+
+\layout {
+ \context {
+ \Voice
+ \consists "Horizontal_bracket_engraver"
+ \override HorizontalBracket.direction = #UP
+ }
+}
+
+{
+ \once\override HorizontalBracketText.text = "a"
+ c''\startGroup d''\stopGroup
+ \once\override HorizontalBracketText.text = "a'"
+ e''\startGroup d''\stopGroup
+ c''
+ -\tweak text \markup \bold \huge "b" \startGroup
+ -\tweak text "a" \startGroup
+ d''\stopGroup
+ e''-\tweak text "a'" \startGroup
+ d''\stopGroup\stopGroup
+ c''-\tweak text foo \startGroup d'' e'' f''
+ \break
+ g'' a'' b'' c'''\stopGroup
+}
« no previous file with comments | « Documentation/notation/editorial.itely ('k') | input/regression/horizontal-bracket-broken-texted.ly » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b