]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
Merge branch 'jneeman' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond into jneeman
[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  #'no-spacing-rods = ##f
127 emptyText = \override TextScript  #'no-spacing-rods = ##t
128
129 showStaffSwitch = \set followVoice = ##t
130 hideStaffSwitch = \set followVoice = ##f
131
132
133
134 % For drawing vertical chord brackets with \arpeggio
135 % This is a shorthand for the value of the print-function property 
136 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
137 % cross-staff brackets are desired. 
138
139 arpeggio = #(make-music 'ArpeggioEvent)
140
141 arpeggioUp = \sequential {
142   \revert Arpeggio  #'stencil
143   \override Arpeggio  #'arpeggio-direction = #UP
144 }
145 arpeggioDown = \sequential {
146   \revert Arpeggio #'stencil
147   \override Arpeggio  #'arpeggio-direction = #DOWN
148 }
149 arpeggioNeutral = \sequential {
150   \revert Arpeggio #'stencil
151   \revert Arpeggio  #'arpeggio-direction
152 }
153 arpeggioBracket = \sequential {
154   \override Arpeggio #'stencil = #ly:arpeggio::brew-chord-bracket
155 }
156
157 glissando = #(make-music 'GlissandoEvent)
158
159 fermataMarkup = \markup { \musicglyph #"scripts.ufermata" } 
160
161 hideNotes =\sequential {
162   % hide notes, accidentals, etc.
163   \override Dots  #'transparent = ##t
164   \override NoteHead  #'transparent = ##t
165   \override NoteHead  #'no-ledgers = ##t
166   \override Stem  #'transparent = ##t
167   \override Beam  #'transparent = ##t
168   \override Accidental  #'transparent = ##t
169 }
170
171
172 unHideNotes = \sequential {
173   \revert Accidental #'transparent
174   \revert Beam #'transparent
175   \revert Stem #'transparent
176   \revert NoteHead #'transparent
177   \revert NoteHead #'no-ledgers
178   \revert Dots #'transparent 
179 }
180
181 germanChords = {
182     \set chordRootNamer = #(chord-name->german-markup #t)
183     \set chordNoteNamer = #note-name->german-markup
184 }
185 semiGermanChords = {
186     \set chordRootNamer = #(chord-name->german-markup #f)
187     \set chordNoteNamer = #note-name->german-markup
188 }
189
190 frenchChords = {
191     \set chordRootNamer = #(chord-name->italian-markup #t)
192     \set chordPrefixSpacer = #0.4
193 }
194
195 italianChords = {
196     \set chordRootNamer = #(chord-name->italian-markup #f)
197     \set chordPrefixSpacer = #0.4
198 }
199
200 improvisationOn =  {
201     \set squashedPosition = #0
202     \override NoteHead  #'style = #'slash
203 }
204
205 improvisationOff =  {
206     \unset squashedPosition 
207     \revert NoteHead #'style
208 }
209
210 textSpannerUp = \override TextSpanner #'direction = #UP
211 textSpannerDown = \override TextSpanner #'direction = #DOWN
212 textSpannerNeutral = \revert TextSpanner #'direction
213