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

Side by Side Diff: ly/engraver-init.ly

Issue 165096: Fix Tracker 918, Add extra RemoveEmpty*StaffContext functions to support "Frenched" scores (Closed)
Patch Set: Play version catchup and reformat tabstaff and rhythmicstaff tests' music Created 15 years, 3 months ago
Left:
Right:
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 unified diff | Download patch
« no previous file with comments | « input/regression/hara-kiri-tabstaff.ly ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 %%%% This file is part of LilyPond, the GNU music typesetter. 1 %%%% This file is part of LilyPond, the GNU music typesetter.
2 %%%% 2 %%%%
3 %%%% Copyright (C) 1996--2009 Han-Wen Nienhuys <hanwen@xs4all.nl> 3 %%%% Copyright (C) 1996--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
4 %%%% Jan Nieuwenhuizen <janneke@gnu.org> 4 %%%% Jan Nieuwenhuizen <janneke@gnu.org>
5 %%%% 5 %%%%
6 %%%% LilyPond is free software: you can redistribute it and/or modify 6 %%%% LilyPond is free software: you can redistribute it and/or modify
7 %%%% it under the terms of the GNU General Public License as published by 7 %%%% it under the terms of the GNU General Public License as published by
8 %%%% the Free Software Foundation, either version 3 of the License, or 8 %%%% the Free Software Foundation, either version 3 of the License, or
9 %%%% (at your option) any later version. 9 %%%% (at your option) any later version.
10 %%%% 10 %%%%
11 %%%% LilyPond is distributed in the hope that it will be useful, 11 %%%% LilyPond is distributed in the hope that it will be useful,
12 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of 12 %%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
13 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 %%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 %%%% GNU General Public License for more details. 14 %%%% GNU General Public License for more details.
15 %%%% 15 %%%%
16 %%%% You should have received a copy of the GNU General Public License 16 %%%% You should have received a copy of the GNU General Public License
17 %%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>. 17 %%%% along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
18 18
19 \version "2.12.0" 19 \version "2.13.10"
20 20
21 \context { 21 \context {
22 \name "Global" 22 \name "Global"
23 23
24 \accepts "Score" 24 \accepts "Score"
25 25
26 \defaultchild "Score" 26 \defaultchild "Score"
27 \description "Hard coded entry point for LilyPond. Cannot be tuned." 27 \description "Hard coded entry point for LilyPond. Cannot be tuned."
28 \grobdescriptions #all-grob-descriptions 28 \grobdescriptions #all-grob-descriptions
29 } 29 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 vocalName = #'() 134 vocalName = #'()
135 shortVocalName = #'() 135 shortVocalName = #'()
136 136
137 \accepts "Staff" 137 \accepts "Staff"
138 \accepts "DrumStaff" 138 \accepts "DrumStaff"
139 \accepts "RhythmicStaff" 139 \accepts "RhythmicStaff"
140 \accepts "GrandStaff" 140 \accepts "GrandStaff"
141 \accepts "PianoStaff" 141 \accepts "PianoStaff"
142 \accepts "Lyrics" 142 \accepts "Lyrics"
143 \accepts "ChordNames" 143 \accepts "ChordNames"
144 \accepts "FiguredBass"
Ian Hulin 2009/12/14 17:15:14 This line not removed by this patch: appeared aft
145 \accepts "ChoirStaff" 144 \accepts "ChoirStaff"
146 \accepts "StaffGroup" 145 \accepts "StaffGroup"
147 \defaultchild "Staff" 146 \defaultchild "Staff"
148 \description "Identical to @code{StaffGroup} except that the 147 \description "Identical to @code{StaffGroup} except that the
149 contained staves are not connected vertically." 148 contained staves are not connected vertically."
150 } 149 }
151 150
152 \context{ 151 \context{
153 \type "Engraver_group" 152 \type "Engraver_group"
154 153
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 \alias "GrandStaff" 318 \alias "GrandStaff"
320 319
321 \description "Just like @code{GrandStaff} but with support for 320 \description "Just like @code{GrandStaff} but with support for
322 instrument names at the start of each system." 321 instrument names at the start of each system."
323 322
324 \consists "Instrument_name_engraver" 323 \consists "Instrument_name_engraver"
325 \consists "Vertical_align_engraver" 324 \consists "Vertical_align_engraver"
326 topLevelAlignment = ##f 325 topLevelAlignment = ##f
327 326
328 \override StaffGrouper #'between-staff-spacing #'stretchability = #5 327 \override StaffGrouper #'between-staff-spacing #'stretchability = #5
329 328
330 instrumentName = #'() 329 instrumentName = #'()
331 shortInstrumentName = #'() 330 shortInstrumentName = #'()
332 } 331 }
333 332
334 \context { 333 \context {
335 \type "Engraver_group" 334 \type "Engraver_group"
336 \name "StaffGroup" 335 \name "StaffGroup"
337 336
338 \consists "Vertical_align_engraver" 337 \consists "Vertical_align_engraver"
339 topLevelAlignment = ##f 338 topLevelAlignment = ##f
(...skipping 28 matching lines...) Expand all
368 \type "Engraver_group" 367 \type "Engraver_group"
369 \name Dynamics 368 \name Dynamics
370 \alias Voice 369 \alias Voice
371 \consists "Output_property_engraver" 370 \consists "Output_property_engraver"
372 \consists "Bar_engraver" 371 \consists "Bar_engraver"
373 \consists "Piano_pedal_engraver" 372 \consists "Piano_pedal_engraver"
374 \consists "Script_engraver" 373 \consists "Script_engraver"
375 \consists "New_dynamic_engraver" 374 \consists "New_dynamic_engraver"
376 \consists "Dynamic_align_engraver" 375 \consists "Dynamic_align_engraver"
377 \consists "Text_engraver" 376 \consists "Text_engraver"
378 \consists "Text_spanner_engraver"
Ian Hulin 2009/12/14 17:15:14 This line also not removed by this patch.
379 \consists "Skip_event_swallow_translator" 377 \consists "Skip_event_swallow_translator"
380 \consists "Axis_group_engraver" 378 \consists "Axis_group_engraver"
381 379
382 pedalSustainStrings = #'("Ped." "*Ped." "*") 380 pedalSustainStrings = #'("Ped." "*Ped." "*")
383 pedalUnaCordaStrings = #'("una corda" "" "tre corde") 381 pedalUnaCordaStrings = #'("una corda" "" "tre corde")
384 \override VerticalAxisGroup #'staff-affinity = #CENTER 382 \override VerticalAxisGroup #'staff-affinity = #CENTER
385 \override VerticalAxisGroup #'inter-staff-spacing = #'((space . 5) (padding . 0.5)) 383 \override VerticalAxisGroup #'inter-staff-spacing = #'((space . 5) (padding . 0.5))
386 \override TextScript #'font-shape = #'italic 384 \override TextScript #'font-shape = #'italic
387 385
388 \description "Holds a single line of dynamics, which will be 386 \description "Holds a single line of dynamics, which will be
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 \description "Context for drawing notes in a Tab staff." 727 \description "Context for drawing notes in a Tab staff."
730 728
731 %% TabStaff increase the staff-space, which in turn 729 %% TabStaff increase the staff-space, which in turn
732 %% increases beam thickness and spacing; beams are 730 %% increases beam thickness and spacing; beams are
733 %% too big. We have to adjust the beam settings: 731 %% too big. We have to adjust the beam settings:
734 \override Beam #'beam-thickness = #0.32 732 \override Beam #'beam-thickness = #0.32
735 \override Beam #'length-fraction = #0.62 733 \override Beam #'length-fraction = #0.62
736 734
737 %% No accidental in tablature ! 735 %% No accidental in tablature !
738 \remove "Accidental_engraver" 736 \remove "Accidental_engraver"
739 %% make the Stems as short as possible to minimize their influence 737 %% make the Stems as short as possible to minimize their influence
740 %% on the slur::calc-control-points routine 738 %% on the slur::calc-control-points routine
741 \override Stem #'length = #0 739 \override Stem #'length = #0
742 \override Stem #'no-stem-extend = ##t 740 \override Stem #'no-stem-extend = ##t
743 \override Stem #'flag-style = #'no-flag 741 \override Stem #'flag-style = #'no-flag
744 \override Stem #'details = #'((lengths 0 0 0 0 0 0) 742 \override Stem #'details = #'((lengths 0 0 0 0 0 0)
745 (beamed-lengths 0 0 0) 743 (beamed-lengths 0 0 0)
746 (beamed-minimum-free-lengths 0 0 0) 744 (beamed-minimum-free-lengths 0 0 0)
747 (beamed-extreme-minimum-free-lengths 0 0) 745 (beamed-extreme-minimum-free-lengths 0 0)
748 (stem-shorten 0 0)) 746 (stem-shorten 0 0))
749 %% after all, the stubs of the stems may still be visible, so ... 747 %% after all, the stubs of the stems may still be visible, so ...
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 \override Custos #'neutral-direction = #DOWN 1002 \override Custos #'neutral-direction = #DOWN
1005 1003
1006 %% Accidentals are valid only once (same as 1004 %% Accidentals are valid only once (same as
1007 %% #(set-accidental-style 'forget)) 1005 %% #(set-accidental-style 'forget))
1008 extraNatural = ##f 1006 extraNatural = ##f
1009 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1)) 1007 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1))
1010 autoCautionaries = #'() 1008 autoCautionaries = #'()
1011 printKeyCancellation = ##f 1009 printKeyCancellation = ##f
1012 } 1010 }
1013 1011
1012 RemoveEmptyDrumStaffContext = \context {
1013 \DrumStaff
1014 \remove "Axis_group_engraver"
1015 \override VerticalAxisGroup #'remove-empty = ##t
1016 \consists "Hara_kiri_engraver"
1017 }
1014 1018
1015 RemoveEmptyRhythmicStaffContext= \context { 1019 RemoveEmptyRhythmicStaffContext = \context {
1016 \RhythmicStaff 1020 \RhythmicStaff
1017 \remove "Axis_group_engraver" 1021 \remove "Axis_group_engraver"
1018 \override VerticalAxisGroup #'remove-empty = ##t 1022 \override VerticalAxisGroup #'remove-empty = ##t
1019 \consists "Hara_kiri_engraver" 1023 \consists "Hara_kiri_engraver"
1020 } 1024 }
1025
1026 RemoveEmptyTabStaffContext = \context {
1027 \TabStaff
1028 \remove "Axis_group_engraver"
1029 \override VerticalAxisGroup #'remove-empty = ##t
1030 \consists "Hara_kiri_engraver"
1031 }
1032
OLDNEW
« no previous file with comments | « input/regression/hara-kiri-tabstaff.ly ('k') | no next file » | no next file with comments »

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