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