]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
* ly/a4-init.ly (vsize): remove papersize init files.
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.3.16"
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
54 dotsUp = \override Dots  #'direction = #1
55 dotsDown = \override Dots  #'direction = #-1
56 dotsBoth = \revert Dots #'direction 
57
58 tupletUp = \override TupletBracket  #'direction = #1
59 tupletDown = \override TupletBracket  #'direction = #-1
60 tupletBoth = \revert TupletBracket #'direction
61
62 cadenzaOn = \set Timing.timing = ##f
63 cadenzaOff = {
64   \set Timing.timing = ##t
65   \set Timing.measurePosition = #(ly:make-moment 0 1)
66 }
67
68 % dynamic ly:dir?  text script, articulation script ly:dir?     
69 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
70 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
71 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
72 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
73 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
74
75         
76 tiny = 
77         \set fontSize = #-2
78
79 small = 
80         \set fontSize = #-1
81
82 normalsize = {
83         \set fontSize = #0
84 }
85
86
87 % End the incipit and print a ``normal line start''.
88 endincipit =  \context Staff {
89     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
90     \once \override Staff.Clef  #'full-size-change = ##t
91     \once \override Staff.Clef  #'non-default = ##t
92     \bar ""
93 }
94
95 autoBeamOff = \set autoBeaming = ##f
96 autoBeamOn = \set autoBeaming = ##t
97
98 fatText = \override TextScript  #'no-spacing-rods = ##f
99 emptyText = \override TextScript  #'no-spacing-rods = ##t
100
101 showStaffSwitch = \set followVoice = ##t
102 hideStaffSwitch = \set followVoice = ##f
103
104
105
106 % To remove a Volta bracket or some other graphical object,
107 % set it to turnOff. Example: \set Staff.VoltaBracket = \turnOff
108
109 %%
110 %% DO NOT USE THIS. IT CAN LEAD TO CRASHES.
111 turnOff = #(cons '() '())
112
113 % For drawing vertical chord brackets with \arpeggio
114 % This is a shorthand for the value of the print-function property 
115 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
116 % cross-staff brackets are desired. 
117
118 arpeggio = #(make-music 'ArpeggioEvent)
119
120 arpeggioUp = \sequential {
121   \revert Arpeggio  #'print-function
122   \override Arpeggio  #'arpeggio-direction = #1
123 }
124 arpeggioDown = \sequential {
125   \revert Arpeggio  #'print-function
126   \override Arpeggio  #'arpeggio-direction = #-1
127 }
128 arpeggioBoth = \sequential {
129   \revert Arpeggio  #'print-function
130   \revert Arpeggio  #'arpeggio-direction
131 }
132 arpeggioBracket = \sequential {
133   \override Arpeggio  #'print-function = #Arpeggio::brew_chord_bracket
134 }
135
136 glissando = #(make-music 'GlissandoEvent)
137
138 fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } 
139
140 hideNotes =\sequential {
141                                 % hide notes, accidentals, etc.
142     \override Dots  #'transparent = ##t
143     \override NoteHead  #'transparent = ##t
144     \override Stem  #'transparent = ##t
145     \override Beam  #'transparent = ##t
146     \override Accidental  #'transparent = ##t
147 }
148
149
150 unHideNotes = \sequential {
151   \revert Accidental #'transparent
152   \revert Beam #'transparent
153   \revert Stem #'transparent
154   \revert NoteHead #'transparent
155   \revert Dots #'transparent 
156 }
157
158 germanChords = {
159     \set chordRootNamer = #(chord-name->german-markup #t)
160     \set chordNoteNamer = #note-name->german-markup
161 }
162 semiGermanChords = {
163     \set chordRootNamer = #(chord-name->german-markup #f)
164     \set chordNoteNamer = #note-name->german-markup
165 }
166
167
168
169 improvisationOn =  {
170     \set squashedPosition = #0
171     \override NoteHead  #'style = #'slash
172 }
173
174 improvisationOff =  {
175     \unset squashedPosition 
176     \revert NoteHead #'style
177 }