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