]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
f8fc46ef4e0135538b9ee8dbfc789642e65e275d
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.4.0"
4
5 stemUp = \override Stem  #'direction = #1
6 stemDown = \override Stem  #'direction = #-1 
7 stemNeutral= \revert Stem #'direction
8
9 slurUp = \override Slur  #'direction = #1
10 slurDown = \override Slur  #'direction = #-1
11 slurNeutral = \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 phrasingSlurNeutral = \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 tieNeutral = \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 aikenHeads = \set shapeNoteStyles = ##(do re mi fa #f la ti)
41
42 sacredHarpHeads =
43   \set shapeNoteStyles = ##(#f #f mi #f fa la #f)
44
45 dynamicUp = {
46   \override DynamicText  #'direction = #1
47   \override DynamicLineSpanner  #'direction = #1
48 }
49
50 dynamicDown = {
51   \override DynamicText  #'direction = #-1
52   \override DynamicLineSpanner  #'direction = #-1
53 }
54
55 dynamicNeutral = {
56   \revert DynamicText #'direction
57   \revert DynamicLineSpanner #'direction
58 }
59
60
61 dotsUp = \override Dots  #'direction = #1
62 dotsDown = \override Dots  #'direction = #-1
63 dotsNeutral = \revert Dots #'direction 
64
65 tupletUp = \override TupletBracket  #'direction = #1
66 tupletDown = \override TupletBracket  #'direction = #-1
67 tupletNeutral = \revert TupletBracket #'direction
68
69 cadenzaOn = \set Timing.timing = ##f
70 cadenzaOff = {
71   \set Timing.timing = ##t
72   \set Timing.measurePosition = #(ly:make-moment 0 1)
73 }
74
75 % dynamic ly:dir?  text script, articulation script ly:dir?     
76 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
77 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
78 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
79 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
80 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
81
82         
83 tiny = 
84         \set fontSize = #-2
85
86 small = 
87         \set fontSize = #-1
88
89 normalsize = {
90         \set fontSize = #0
91 }
92
93
94 % End the incipit and print a ``normal line start''.
95 endincipit =  \context Staff {
96     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
97     \once \override Staff.Clef  #'full-size-change = ##t
98     \once \override Staff.Clef  #'non-default = ##t
99     \bar ""
100 }
101
102 autoBeamOff = \set autoBeaming = ##f
103 autoBeamOn = \set autoBeaming = ##t
104
105 fatText = \override TextScript  #'no-spacing-rods = ##f
106 emptyText = \override TextScript  #'no-spacing-rods = ##t
107
108 showStaffSwitch = \set followVoice = ##t
109 hideStaffSwitch = \set followVoice = ##f
110
111
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 arpeggioNeutral = \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 NoteHead  #'no-ledgers = ##t
145   \override Stem  #'transparent = ##t
146   \override Beam  #'transparent = ##t
147   \override Accidental  #'transparent = ##t
148 }
149
150
151 unHideNotes = \sequential {
152   \revert Accidental #'transparent
153   \revert Beam #'transparent
154   \revert Stem #'transparent
155   \revert NoteHead #'transparent
156   \revert NoteHead #'no-ledgers
157   \revert Dots #'transparent 
158 }
159
160 germanChords = {
161     \set chordRootNamer = #(chord-name->german-markup #t)
162     \set chordNoteNamer = #note-name->german-markup
163 }
164 semiGermanChords = {
165     \set chordRootNamer = #(chord-name->german-markup #f)
166     \set chordNoteNamer = #note-name->german-markup
167 }
168
169
170
171 improvisationOn =  {
172     \set squashedPosition = #0
173     \override NoteHead  #'style = #'slash
174 }
175
176 improvisationOff =  {
177     \unset squashedPosition 
178     \revert NoteHead #'style
179 }