]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
release: 1.5.29
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "1.3.146"
4
5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1 
7 stemBoth= \property Voice.Stem \revert #'direction
8
9 slurUp   = \property Voice.Slur \override #'direction = #1
10 slurDown = \property Voice.Slur \override #'direction = #-1
11 slurBoth = \property Voice.Slur \revert #'direction 
12 shiftOn  = \property Voice.NoteColumn \override #'horizontal-shift = #1
13 shiftOnn  = \property Voice.NoteColumn \override #'horizontal-shift = #2
14 shiftOnnn  = \property Voice.NoteColumn \override #'horizontal-shift = #3
15 shiftOff  = \property Voice.NoteColumn \revert #'horizontal-shift 
16
17 tieUp = \property Voice.Tie \override #'direction = #1
18 tieDown = \property Voice.Tie \override #'direction = #-1
19 tieBoth = \property Voice.Tie \revert #'direction 
20
21 dynamicUp  = {
22   \property Voice.DynamicText \override #'direction = #1
23   \property Voice.DynamicLineSpanner \override #'direction = #1
24 }
25 dynamicDown = {
26   \property Voice.DynamicText \override #'direction = #-1
27   \property Voice.DynamicLineSpanner \override #'direction = #-1
28 }
29 dynamicBoth = {
30   \property Voice.DynamicText \revert #'direction
31   \property Voice.DynamicLineSpanner \revert #'direction
32 }
33
34 scriptUp  = {
35   \property Voice.TextScript \override #'direction = #1
36   \property Voice.Script \override #'direction = #1
37 }
38 scriptDown = {
39   \property Voice.TextScript \override #'direction = #-1
40   \property Voice.Script \override #'direction = #-1
41 }
42 scriptBoth = {
43   \property Voice.TextScript \revert #'direction
44   \property Voice.Script \revert #'direction
45 }
46
47 dotsUp = \property Voice.Dots \override #'direction = #1
48 dotsDown = \property Voice.Dots \override #'direction = #-1
49 dotsBoth = \property Voice.Dots \revert #'direction 
50
51 % why doubly?
52 tupletUp  = {
53   \property Voice.TupletBracket \override #'direction = #1
54   \property Voice.TupletBracket \override #'direction = #1
55 }
56 tupletDown = {
57   \property Voice.TupletBracket \override #'direction = #-1
58   \property Voice.TupletBracket \override #'direction = #-1
59 }
60 tupletBoth = {
61   \property Voice.TupletBracket \revert #'direction
62   \property Voice.TupletBracket \revert #'direction
63 }
64
65
66
67 cadenzaOn = \property Score.timing = ##f
68 cadenzaOff = {
69   \property Score.timing = ##t
70   \property Score.measurePosition = #(make-moment 0 1)
71 }
72
73 newpage = {
74   \break
75   % urg, only works for TeX output
76   \context Score \outputproperty #(make-type-checker 'paper-column-interface)
77     #'between-system-string = #"\\newpage"
78 }
79
80 % dynamic dir?  text script, articulation script dir?   
81 oneVoice = {    
82   \stemBoth
83   \slurBoth
84   \tieBoth
85   \shiftOff
86 }
87
88 voiceOne = {
89   \stemUp
90   \slurUp
91   \tieUp
92   \dotsUp    
93 }
94
95 voiceTwo = {
96   \stemDown
97   \slurDown
98   \tieDown
99   \dotsDown  
100 }
101    
102 voiceThree = {
103   \stemUp
104   \slurUp
105   \tieUp
106   \shiftOn
107   \dotsUp
108 }
109
110 voiceFour = {
111   \stemDown
112   \slurDown
113   \tieDown
114   \shiftOn
115   \dotsDown
116 }
117
118 % There's also dash, but setting dash period/length should be fixed.
119 slurDotted = \property Voice.Slur \override #'dashed = #1
120 slurSolid = \property Voice.Slur \revert #'dashed
121 tieDotted = \property Voice.Tie \override #'dashed = #1
122 tieSolid = \property Voice.Tie \revert #'dashed
123
124         
125 tiny  = 
126         \property Voice.fontSize= -2
127
128
129 small  = 
130         \property Voice.fontSize= -1
131
132
133 normalsize = {
134         \property Voice.fontSize= 0
135 }
136
137 normalkey = {
138         \property Staff.keyOctaviation = ##f
139 }
140
141 specialkey = {
142         \property Staff.keyOctaviation = ##t
143 }
144
145 % End the incipit and print a ``normal line start''.
146 endincipit = \notes{
147     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
148     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
149     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
150     \bar ""
151 }
152
153 autoBeamOff = \property Voice.noAutoBeaming = ##t
154 autoBeamOn = \property Voice.noAutoBeaming = ##f
155
156 emptyText = \property Voice.textNonEmpty = ##f
157 fatText = \property Voice.textNonEmpty = ##t
158
159 showStaffSwitch = \property Voice.followVoice = ##t
160 hideStaffSwitch = \property Voice.followVoice = ##f
161
162 % FIXME: Move this docu (to where?)
163
164 % accidentals as they were common in the 18th century.
165 defaultAccidentals = {
166   \property Score.extraNatural = ##t
167   \property Score.autoAccidentals = #'((measure-same-octave . 0))
168   \property Score.autoCautionaries = #'()  
169 }
170
171 % accidentals as suggested by Kurt Stone, Music Notation in the 20th century.
172 % This includes all the default accidentals, but accidentals also needs cancelling
173 % in other octaves and in the next measure.
174 modernAccidentals = {
175   \property Score.extraNatural = ##f
176   \property Score.autoAccidentals = #'((measure-same-octave . 0) (measure-any-octave . 0) (measure-any-octave . 1))
177   \property Score.autoCautionaries = #'()  
178 }
179
180 % the accidentals that Stone adds to the old standard as cautionaries
181 modernCautionaries = {
182   \property Score.extraNatural = ##f
183   \property Score.autoAccidentals = #'((measure-same-octave . 0))
184   \property Score.autoCautionaries = #'((measure-any-octave . 0) (measure-any-octave . 1))  
185 }
186
187 % Do not reset the key at the start of a measure.  Accidentals will be
188 % printed only once and are in effect until overridden, possibly many
189 % measures later.
190 noResetKey = {
191   \property Score.autoAccidentals = #'((measure-same-octave . #t))
192   \property Score.autoCautionaries = #'()
193 }
194
195 % do not set localKeySignature when a note alterated differently from
196 % localKeySignature is found.
197 % Causes accidentals to be printed at every note instead of
198 % remembered for the duration of a measure.
199 % accidentals not being remembered, causing accidentals always to be typeset relative to the time signature
200 forgetAccidentals = {
201   \property Score.autoAccidentals = #'((measure-same-octave . -1))
202   \property Score.autoCautionaries = #'()  
203 }
204
205
206 % To remove a Volta bracket or some other graphical object,
207 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
208
209 turnOff = #'()