OLD | NEW |
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--2011 Han-Wen Nienhuys <hanwen@xs4all.nl> | 3 %%%% Copyright (C) 1996--2011 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 %%%% |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 \defaultchild "Staff" | 541 \defaultchild "Staff" |
542 | 542 |
543 \accepts "FretBoards" | 543 \accepts "FretBoards" |
544 \accepts "Staff" | 544 \accepts "Staff" |
545 \accepts "RhythmicStaff" | 545 \accepts "RhythmicStaff" |
546 \accepts "TabStaff" | 546 \accepts "TabStaff" |
547 \accepts "VaticanaStaff" | 547 \accepts "VaticanaStaff" |
548 \accepts "GregorianTranscriptionStaff" | 548 \accepts "GregorianTranscriptionStaff" |
549 \accepts "MensuralStaff" | 549 \accepts "MensuralStaff" |
| 550 \accepts "PetrucciStaff" |
550 \accepts "StaffGroup" | 551 \accepts "StaffGroup" |
551 \accepts "DrumStaff" | 552 \accepts "DrumStaff" |
552 \accepts "Lyrics" | 553 \accepts "Lyrics" |
553 \accepts "ChordNames" | 554 \accepts "ChordNames" |
554 \accepts "GrandStaff" | 555 \accepts "GrandStaff" |
555 \accepts "ChoirStaff" | 556 \accepts "ChoirStaff" |
556 \accepts "PianoStaff" | 557 \accepts "PianoStaff" |
557 \accepts "Devnull" | 558 \accepts "Devnull" |
558 \accepts "NoteNames" | 559 \accepts "NoteNames" |
559 \accepts "FiguredBass" | 560 \accepts "FiguredBass" |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 \description "Same as @code{Voice} context, except that it is | 987 \description "Same as @code{Voice} context, except that it is |
987 accommodated for typesetting a piece in mensural style." | 988 accommodated for typesetting a piece in mensural style." |
988 | 989 |
989 \remove "Slur_engraver" | 990 \remove "Slur_engraver" |
990 \remove "Ligature_bracket_engraver" | 991 \remove "Ligature_bracket_engraver" |
991 \consists "Mensural_ligature_engraver" | 992 \consists "Mensural_ligature_engraver" |
992 | 993 |
993 %% Set default head for notes outside of \[ \]. | 994 %% Set default head for notes outside of \[ \]. |
994 \override NoteHead #'style = #'mensural | 995 \override NoteHead #'style = #'mensural |
995 \override Rest #'style = #'mensural | 996 \override Rest #'style = #'mensural |
| 997 \override Flag #'style = #'mensural |
996 | 998 |
997 %% There are no beams in mensural notation. | 999 %% There are no beams in mensural notation. |
998 autoBeaming = ##f | 1000 autoBeaming = ##f |
999 } | 1001 } |
1000 | 1002 |
1001 \context { | 1003 \context { |
1002 \Staff | 1004 \Staff |
1003 \name "MensuralStaff" | 1005 \name "MensuralStaff" |
1004 \alias "Staff" | 1006 \alias "Staff" |
1005 \denies "Voice" | 1007 \denies "Voice" |
(...skipping 30 matching lines...) Expand all Loading... |
1036 \override Custos #'neutral-direction = #DOWN | 1038 \override Custos #'neutral-direction = #DOWN |
1037 | 1039 |
1038 %% Accidentals are valid only once (same as | 1040 %% Accidentals are valid only once (same as |
1039 %% #(set-accidental-style 'forget)) | 1041 %% #(set-accidental-style 'forget)) |
1040 extraNatural = ##f | 1042 extraNatural = ##f |
1041 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1)) | 1043 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave -1)) |
1042 autoCautionaries = #'() | 1044 autoCautionaries = #'() |
1043 printKeyCancellation = ##f | 1045 printKeyCancellation = ##f |
1044 } | 1046 } |
1045 | 1047 |
| 1048 \context { |
| 1049 \Voice |
| 1050 \name "PetrucciVoice" |
| 1051 \alias "Voice" |
| 1052 \description "Same as @code{Voice} context, except that it is |
| 1053 accommodated for typesetting a piece in Petrucci style." |
| 1054 |
| 1055 \remove "Ligature_bracket_engraver" |
| 1056 \consists "Mensural_ligature_engraver" |
| 1057 |
| 1058 %% Set glyph styles. |
| 1059 \override NoteHead #'style = #'petrucci |
| 1060 \override Rest #'style = #'mensural |
| 1061 |
| 1062 % Thickens and shortens stems. |
| 1063 \override Stem #'thickness = #1.7 |
| 1064 \override Stem #'length = #5 |
| 1065 |
| 1066 %% There are no beams in Petrucci notation. |
| 1067 autoBeaming = ##f |
| 1068 } |
| 1069 |
| 1070 \context { |
| 1071 \Staff |
| 1072 \name "PetrucciStaff" |
| 1073 \alias "Staff" |
| 1074 \denies "Voice" |
| 1075 \defaultchild "PetrucciVoice" |
| 1076 \accepts "PetrucciVoice" |
| 1077 \description "Same as @code{Staff} context, except that it is |
| 1078 accommodated for typesetting a piece in Petrucci style." |
| 1079 |
| 1080 \consists "Custos_engraver" |
| 1081 |
| 1082 \override StaffSymbol #'thickness = #1.3 |
| 1083 |
| 1084 %% Choose Petrucci g clef on 2nd line as default. |
| 1085 clefGlyph = #"clefs.petrucci.g" |
| 1086 middleCClefPosition = #-6 |
| 1087 middleCPosition = #-6 |
| 1088 clefPosition = #-2 |
| 1089 clefOctavation = #0 |
| 1090 |
| 1091 \override Custos #'style = #'mensural |
| 1092 \override Custos #'neutral-position = #3 |
| 1093 \override Custos #'neutral-direction = #DOWN |
| 1094 |
| 1095 %% Accidentals are valid only once (if the following note is different) |
| 1096 extraNatural = ##f |
| 1097 autoAccidentals = #`(Staff ,(make-accidental-rule 'same-octave 0) |
| 1098 ,neo-modern-accidental-rule) |
| 1099 autoCautionaries = #'() |
| 1100 printKeyCancellation = ##f |
| 1101 } |
| 1102 |
1046 %% Keep the old definitions in here for compatibility (they erase previous | 1103 %% Keep the old definitions in here for compatibility (they erase previous |
1047 %% settings to the corresponding context!). | 1104 %% settings to the corresponding context!). |
1048 %% For new scores, one should simply insert the \RemoveEmptyStaves settings | 1105 %% For new scores, one should simply insert the \RemoveEmptyStaves settings |
1049 %% into the desired context. That's just as easy, requires only one line more | 1106 %% into the desired context. That's just as easy, requires only one line more |
1050 %% (the \*Staff), but preserves previous context mods. | 1107 %% (the \*Staff), but preserves previous context mods. |
1051 %% TODO: DEPRECATED_2.13.17, remove at some point in the future | 1108 %% TODO: DEPRECATED_2.13.17, remove at some point in the future |
1052 RemoveEmptyStaffContext = \context { | 1109 RemoveEmptyStaffContext = \context { |
1053 \Staff | 1110 \Staff |
1054 \RemoveEmptyStaves | 1111 \RemoveEmptyStaves |
1055 } | 1112 } |
(...skipping 10 matching lines...) Expand all Loading... |
1066 | 1123 |
1067 RemoveEmptyRhythmicStaffContext = \context { | 1124 RemoveEmptyRhythmicStaffContext = \context { |
1068 \RhythmicStaff | 1125 \RhythmicStaff |
1069 \RemoveEmptyStaves | 1126 \RemoveEmptyStaves |
1070 } | 1127 } |
1071 | 1128 |
1072 RemoveEmptyTabStaffContext = \context { | 1129 RemoveEmptyTabStaffContext = \context { |
1073 \TabStaff | 1130 \TabStaff |
1074 \RemoveEmptyStaves | 1131 \RemoveEmptyStaves |
1075 } | 1132 } |
OLD | NEW |