]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
* Documentation/user/invoking.itely (Reporting bugs): rename.
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.3.22"
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 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 dynamicNeutral = {
49   \revert DynamicText #'direction
50   \revert DynamicLineSpanner #'direction
51 }
52
53
54 dotsUp = \override Dots  #'direction = #1
55 dotsDown = \override Dots  #'direction = #-1
56 dotsNeutral = \revert Dots #'direction 
57
58 tupletUp = \override TupletBracket  #'direction = #1
59 tupletDown = \override TupletBracket  #'direction = #-1
60 tupletNeutral = \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 % For drawing vertical chord brackets with \arpeggio
107 % This is a shorthand for the value of the print-function property 
108 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
109 % cross-staff brackets are desired. 
110
111 arpeggio = #(make-music 'ArpeggioEvent)
112
113 arpeggioUp = \sequential {
114   \revert Arpeggio  #'print-function
115   \override Arpeggio  #'arpeggio-direction = #1
116 }
117 arpeggioDown = \sequential {
118   \revert Arpeggio  #'print-function
119   \override Arpeggio  #'arpeggio-direction = #-1
120 }
121 arpeggioNeutral = \sequential {
122   \revert Arpeggio  #'print-function
123   \revert Arpeggio  #'arpeggio-direction
124 }
125 arpeggioBracket = \sequential {
126   \override Arpeggio  #'print-function = #Arpeggio::brew_chord_bracket
127 }
128
129 glissando = #(make-music 'GlissandoEvent)
130
131 fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } 
132
133 hideNotes =\sequential {
134   % hide notes, accidentals, etc.
135   \override Dots  #'transparent = ##t
136   \override NoteHead  #'transparent = ##t
137   \override NoteHead  #'no-ledgers = ##t
138   \override Stem  #'transparent = ##t
139   \override Beam  #'transparent = ##t
140   \override Accidental  #'transparent = ##t
141 }
142
143
144 unHideNotes = \sequential {
145   \revert Accidental #'transparent
146   \revert Beam #'transparent
147   \revert Stem #'transparent
148   \revert NoteHead #'transparent
149   \revert NoteHead #'no-ledgers
150   \revert Dots #'transparent 
151 }
152
153 germanChords = {
154     \set chordRootNamer = #(chord-name->german-markup #t)
155     \set chordNoteNamer = #note-name->german-markup
156 }
157 semiGermanChords = {
158     \set chordRootNamer = #(chord-name->german-markup #f)
159     \set chordNoteNamer = #note-name->german-markup
160 }
161
162
163
164 improvisationOn =  {
165     \set squashedPosition = #0
166     \override NoteHead  #'style = #'slash
167 }
168
169 improvisationOff =  {
170     \unset squashedPosition 
171     \revert NoteHead #'style
172 }