]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
(accurate_boxes): enlarge Y-extent of flat to
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.1.30"
4
5 stemUp = \override Stem  #'direction = #1
6 stemDown = \override Stem  #'direction = #-1 
7 stemBoth= \revert Stem #'direction
8
9 slurUp = \override Slur  #'direction = #1
10 slurDown = \override Slur  #'direction = #-1
11 slurBoth = \revert Slur #'direction 
12
13 % There's also dash, but setting dash period/length should be fixed.
14 slurDotted = \override Slur  #'dashed = #1
15 slurSolid = \revert Slur #'dashed
16
17
18 phrasingSlurUp = \override PhrasingSlur  #'direction = #1
19 phrasingSlurDown = \override PhrasingSlur  #'direction = #-1
20 phrasingSlurBoth = \revert PhrasingSlur #'direction 
21
22 shiftOn = \override NoteColumn  #'horizontal-shift = #1
23 shiftOnn = \override NoteColumn  #'horizontal-shift = #2
24 shiftOnnn = \override NoteColumn  #'horizontal-shift = #3
25 shiftOff = \revert NoteColumn #'horizontal-shift 
26
27 tieUp = \override Tie  #'direction = #1
28 tieDown = \override Tie  #'direction = #-1
29 tieBoth = \revert Tie #'direction 
30
31 tieDotted = \override Tie  #'dashed = #1
32 tieSolid = \revert Tie #'dashed
33
34 setEasyHeads = \sequential {
35         \override NoteHead #'print-function = #Note_head::brew_ez_stencil
36         \override NoteHead #'Y-extent-callback = #'()
37         \override NoteHead #'X-extent-callback = #'()
38 }
39
40 dynamicUp = {
41   \override DynamicText  #'direction = #1
42   \override DynamicLineSpanner  #'direction = #1
43 }
44 dynamicDown = {
45   \override DynamicText  #'direction = #-1
46   \override DynamicLineSpanner  #'direction = #-1
47 }
48 dynamicBoth = {
49   \revert DynamicText #'direction
50   \revert DynamicLineSpanner #'direction
51 }
52
53 scriptUp = {
54   \override TextScript  #'direction = #1
55   \override Script  #'direction = #1
56 }
57 scriptDown = {
58   \override TextScript  #'direction = #-1
59   \override Script  #'direction = #-1
60 }
61 scriptBoth = {
62   \revert TextScript #'direction
63   \revert Script #'direction
64 }
65
66 dotsUp = \override Dots  #'direction = #1
67 dotsDown = \override Dots  #'direction = #-1
68 dotsBoth = \revert Dots #'direction 
69
70 tupletUp = \override TupletBracket  #'direction = #1
71 tupletDown = \override TupletBracket  #'direction = #-1
72 tupletBoth = \revert TupletBracket #'direction
73
74 cadenzaOn = \set Timing.timing = ##f
75 cadenzaOff = {
76   \set Timing.timing = ##t
77   \set Timing.measurePosition = #(ly:make-moment 0 1)
78 }
79
80 newpage = \notes
81 {
82   \break
83   % urg, only works for TeX output
84   \context Score \applyoutput
85   #(outputproperty-compatibility (make-type-checker 'paper-column-interface)
86     'between-system-string "\\newpage")
87 }
88
89 % dynamic ly:dir?  text script, articulation script ly:dir?     
90 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
91 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
92 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
93 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
94 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
95
96         
97 tiny = 
98         \set fontSize = #-2
99
100 small = 
101         \set fontSize = #-1
102
103 normalsize = {
104         \set fontSize = #0
105 }
106
107
108 % End the incipit and print a ``normal line start''.
109 endincipit = \notes \context Staff {
110     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
111     \once \override Staff.Clef  #'full-size-change = ##t
112     \once \override Staff.Clef  #'non-default = ##t
113     \bar ""
114 }
115
116 autoBeamOff = \set autoBeaming = ##f
117 autoBeamOn = \set autoBeaming = ##t
118
119 fatText = \override TextScript  #'no-spacing-rods = ##f
120 emptyText = \override TextScript  #'no-spacing-rods = ##t
121
122 showStaffSwitch = \set followVoice = ##t
123 hideStaffSwitch = \set followVoice = ##f
124
125
126
127 % To remove a Volta bracket or some other graphical object,
128 % set it to turnOff. Example: \set Staff.VoltaBracket = \turnOff
129
130 %%
131 %% DO NOT USE THIS. IT CAN LEAD TO CRASHES.
132 turnOff = #(cons '() '())
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  #'print-function
143   \override Arpeggio  #'arpeggio-direction = #1
144 }
145 arpeggioDown = \sequential {
146   \revert Arpeggio  #'print-function
147   \override Arpeggio  #'arpeggio-direction = #-1
148 }
149 arpeggioBoth = \sequential {
150   \revert Arpeggio  #'print-function
151   \revert Arpeggio  #'arpeggio-direction
152 }
153 arpeggioBracket = \sequential {
154   \override Arpeggio  #'print-function = #Arpeggio::brew_chord_bracket
155 }
156
157 glissando = #(make-music 'GlissandoEvent)
158
159 fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } 
160
161 setMmRestFermata =
162   \once \override MultiMeasureRestNumber  #'text =
163     #fermataMarkup 
164
165
166 hideNotes =\sequential {
167                                 % hide notes, accidentals, etc.
168     \override Dots  #'transparent = ##t
169     \override NoteHead  #'transparent = ##t
170     \override Stem  #'transparent = ##t
171     \override Beam  #'transparent = ##t
172     \override Staff.Accidental  #'transparent = ##t
173 }
174
175
176 unHideNotes = \sequential {
177   \revert Staff.Accidental #'transparent
178   \revert Beam #'transparent
179   \revert Stem #'transparent
180   \revert NoteHead #'transparent
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 }