]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
4611b020d2bd1bb21099b62e1e20b200c290acd0
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.4.0"
4
5 stemUp = \override Stem  #'direction = #1
6 stemDown = \override Stem  #'direction = #-1 
7 stemNeutral= \revert Stem #'direction
8
9 slurUp = \override Slur  #'direction = #1
10 slurDown = \override Slur  #'direction = #-1
11 slurNeutral = \revert Slur #'direction 
12
13 %% There's also dash, but setting dash period/length should be fixed.
14 slurDashed = {
15   \override Slur #'dash-period = #0.75
16   \override Slur #'dash-fraction = #0.4
17 }
18 slurDotted = {
19   \override Slur  #'dash-period = #0.75
20   \override Slur #'dash-fraction = #0.1
21 }
22 slurSolid = {
23   \revert Slur #'dash-period
24   \revert Slur #'dash-fraction
25 }
26
27
28 phrasingSlurUp = \override PhrasingSlur  #'direction = #1
29 phrasingSlurDown = \override PhrasingSlur  #'direction = #-1
30 phrasingSlurNeutral = \revert PhrasingSlur #'direction 
31
32 shiftOn = \override NoteColumn  #'horizontal-shift = #1
33 shiftOnn = \override NoteColumn  #'horizontal-shift = #2
34 shiftOnnn = \override NoteColumn  #'horizontal-shift = #3
35 shiftOff = \revert NoteColumn #'horizontal-shift 
36
37 tieUp = \override Tie  #'direction = #1
38 tieDown = \override Tie  #'direction = #-1
39 tieNeutral = \revert Tie #'direction 
40
41 tieDotted = {
42   \override Tie #'dash-period = #0.75
43   \override Tie #'dash-fraction = #0.1
44 }
45 tieSolid = {
46   \revert Tie #'dash-period
47   \revert Tie #'dash-fraction
48 }
49
50 setEasyHeads = \sequential {
51   \override NoteHead #'print-function = #Note_head::brew_ez_stencil
52   \override NoteHead #'font-size = #-7
53   \override NoteHead #'font-family = #'sans
54 }
55
56 aikenHeads = \set shapeNoteStyles = ##(do re mi fa #f la ti)
57
58 sacredHarpHeads =
59   \set shapeNoteStyles = ##(#f #f mi #f fa la #f)
60
61 dynamicUp = {
62   \override DynamicText  #'direction = #1
63   \override DynamicLineSpanner  #'direction = #1
64 }
65
66 dynamicDown = {
67   \override DynamicText  #'direction = #-1
68   \override DynamicLineSpanner  #'direction = #-1
69 }
70
71 dynamicNeutral = {
72   \revert DynamicText #'direction
73   \revert DynamicLineSpanner #'direction
74 }
75
76
77 dotsUp = \override Dots  #'direction = #1
78 dotsDown = \override Dots  #'direction = #-1
79 dotsNeutral = \revert Dots #'direction 
80
81 tupletUp = \override TupletBracket  #'direction = #1
82 tupletDown = \override TupletBracket  #'direction = #-1
83 tupletNeutral = \revert TupletBracket #'direction
84
85 cadenzaOn = \set Timing.timing = ##f
86 cadenzaOff = {
87   \set Timing.timing = ##t
88   \set Timing.measurePosition = #(ly:make-moment 0 1)
89 }
90
91 % dynamic ly:dir?  text script, articulation script ly:dir?     
92 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
93 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
94 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
95 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
96 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
97
98         
99 tiny = 
100 \set fontSize = #-2
101
102 small = 
103 \set fontSize = #-1
104
105 normalsize = {
106   \set fontSize = #0
107 }
108
109
110 %% End the incipit and print a ``normal line start''.
111 endincipit =  \context Staff {
112   \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
113   \once \override Staff.Clef  #'full-size-change = ##t
114   \once \override Staff.Clef  #'non-default = ##t
115   \bar ""
116 }
117
118 autoBeamOff = \set autoBeaming = ##f
119 autoBeamOn = \set autoBeaming = ##t
120
121 fatText = \override TextScript  #'no-spacing-rods = ##f
122 emptyText = \override TextScript  #'no-spacing-rods = ##t
123
124 showStaffSwitch = \set followVoice = ##t
125 hideStaffSwitch = \set followVoice = ##f
126
127
128
129 % For drawing vertical chord brackets with \arpeggio
130 % This is a shorthand for the value of the print-function property 
131 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
132 % cross-staff brackets are desired. 
133
134 arpeggio = #(make-music 'ArpeggioEvent)
135
136 arpeggioUp = \sequential {
137   \revert Arpeggio  #'print-function
138   \override Arpeggio  #'arpeggio-direction = #1
139 }
140 arpeggioDown = \sequential {
141   \revert Arpeggio  #'print-function
142   \override Arpeggio  #'arpeggio-direction = #-1
143 }
144 arpeggioNeutral = \sequential {
145   \revert Arpeggio  #'print-function
146   \revert Arpeggio  #'arpeggio-direction
147 }
148 arpeggioBracket = \sequential {
149   \override Arpeggio #'print-function = #Arpeggio::brew_chord_bracket
150 }
151
152 glissando = #(make-music 'GlissandoEvent)
153
154 fermataMarkup = \markup { \musicglyph #"scripts.ufermata" } 
155
156 hideNotes =\sequential {
157   % hide notes, accidentals, etc.
158   \override Dots  #'transparent = ##t
159   \override NoteHead  #'transparent = ##t
160   \override NoteHead  #'no-ledgers = ##t
161   \override Stem  #'transparent = ##t
162   \override Beam  #'transparent = ##t
163   \override Accidental  #'transparent = ##t
164 }
165
166
167 unHideNotes = \sequential {
168   \revert Accidental #'transparent
169   \revert Beam #'transparent
170   \revert Stem #'transparent
171   \revert NoteHead #'transparent
172   \revert NoteHead #'no-ledgers
173   \revert Dots #'transparent 
174 }
175
176 germanChords = {
177     \set chordRootNamer = #(chord-name->german-markup #t)
178     \set chordNoteNamer = #note-name->german-markup
179 }
180 semiGermanChords = {
181     \set chordRootNamer = #(chord-name->german-markup #f)
182     \set chordNoteNamer = #note-name->german-markup
183 }
184
185 frenchChords = {
186     \set chordRootNamer = #(chord-name->italian-markup #t)
187     \set chordPrefixSpacer = #0.4
188 }
189
190 italianChords = {
191     \set chordRootNamer = #(chord-name->italian-markup #f)
192     \set chordPrefixSpacer = #0.4
193 }
194
195 improvisationOn =  {
196     \set squashedPosition = #0
197     \override NoteHead  #'style = #'slash
198 }
199
200 improvisationOff =  {
201     \unset squashedPosition 
202     \revert NoteHead #'style
203 }
204
205 textSpannerUp = \override TextSpanner #'direction = #1
206 textSpannerDown = \override TextSpanner #'direction = #-1
207 textSpannerNeutral = \revert TextSpanner #'direction
208