summaryrefslogtreecommitdiff
path: root/ly
diff options
context:
space:
mode:
authorReinhold Kainhofer <reinhold@kainhofer.com>2011-01-28 16:35:26 +0100
committerReinhold Kainhofer <reinhold@kainhofer.com>2011-01-28 16:35:26 +0100
commit1528c75809ebc59d93018dbf59559436f75f082b (patch)
tree0bc50c4f0202b3321d484b22864cde7cf3f6bd7c /ly
parent87596a012cf7f380ee5164c4ede1daa7a3c39f52 (diff)
parent8656e359d629aed6990bb8d8d3da8eac2d2c311e (diff)
Merge branch 'instrumentName-groups'
Diffstat (limited to 'ly')
-rw-r--r--ly/engraver-init.ly29
1 files changed, 25 insertions, 4 deletions
diff --git a/ly/engraver-init.ly b/ly/engraver-init.ly
index 5f3383ce12..7de70d3732 100644
--- a/ly/engraver-init.ly
+++ b/ly/engraver-init.ly
@@ -40,6 +40,10 @@
\consists "Font_size_engraver"
\consists "Instrument_name_engraver"
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
+
predefinedDiagramTable = #default-fret-table
}
@@ -84,7 +88,6 @@
%% explicitly set instrument, so we don't get
%% weird effects when doing instrument names for
%% piano staves
-
instrumentName = #'()
shortInstrumentName = #'()
@@ -126,8 +129,12 @@
\consists "Vertical_align_engraver"
topLevelAlignment = ##f
+ \consists "Instrument_name_engraver"
\consists "System_start_delimiter_engraver"
systemStartDelimiter = #'SystemStartBracket
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
vocalName = #'()
shortVocalName = #'()
@@ -175,6 +182,10 @@ contained staves are not connected vertically."
\consists "Axis_group_engraver"
\consists "Ledger_line_engraver"
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
+
\accepts "Voice"
\accepts "CueVoice"
\defaultchild "Voice"
@@ -296,11 +307,15 @@ multiple voices on the same staff."
side, grouping the staves together. The bar lines of the
contained staves are connected vertically."
+ \consists "Instrument_name_engraver"
\consists "Span_bar_engraver"
\consists "Span_arpeggio_engraver"
\consists "System_start_delimiter_engraver"
systemStartDelimiter = #'SystemStartBrace
topLevelAlignment = ##f
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
\defaultchild "Staff"
\accepts "Staff"
@@ -314,10 +329,9 @@ contained staves are connected vertically."
\name "PianoStaff"
\alias "GrandStaff"
- \description "Just like @code{GrandStaff} but with support for
-instrument names at the start of each system."
+ \description "Just like @code{GrandStaff}, but the staves are only removed
+together, never separately."
- \consists "Instrument_name_engraver"
\consists "Vertical_align_engraver"
\consists "Keep_alive_together_engraver"
topLevelAlignment = ##f
@@ -333,10 +347,14 @@ instrument names at the start of each system."
\consists "Vertical_align_engraver"
topLevelAlignment = ##f
+ \consists "Instrument_name_engraver"
\consists "Span_bar_engraver"
\consists "Span_arpeggio_engraver"
\consists "Output_property_engraver"
systemStartDelimiter = #'SystemStartBracket
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
\consists "System_start_delimiter_engraver"
@@ -404,6 +422,9 @@ printing of a single line of lyrics."
\consists "Instrument_name_engraver"
\consists "Font_size_engraver"
\consists "Hara_kiri_engraver"
+ %% explicitly set instrument, so it is not inherited from the parent
+ instrumentName = #'()
+ shortInstrumentName = #'()
\override VerticalAxisGroup #'remove-first = ##t
\override VerticalAxisGroup #'remove-empty = ##t