]> git.donarmstrong.com Git - lilypond.git/blob - ly/property-init.ly
* scripts/lilypond-book.py (do_file): do not overwrite input file.
[lilypond.git] / ly / property-init.ly
1 % property-init.ly
2
3 \version "2.1.26"
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
35 dynamicUp = {
36   \override DynamicText  #'direction = #1
37   \override DynamicLineSpanner  #'direction = #1
38 }
39 dynamicDown = {
40   \override DynamicText  #'direction = #-1
41   \override DynamicLineSpanner  #'direction = #-1
42 }
43 dynamicBoth = {
44   \revert DynamicText #'direction
45   \revert DynamicLineSpanner #'direction
46 }
47
48 scriptUp = {
49   \override TextScript  #'direction = #1
50   \override Script  #'direction = #1
51 }
52 scriptDown = {
53   \override TextScript  #'direction = #-1
54   \override Script  #'direction = #-1
55 }
56 scriptBoth = {
57   \revert TextScript #'direction
58   \revert Script #'direction
59 }
60
61 dotsUp = \override Dots  #'direction = #1
62 dotsDown = \override Dots  #'direction = #-1
63 dotsBoth = \revert Dots #'direction 
64
65 tupletUp = \override TupletBracket  #'direction = #1
66 tupletDown = \override TupletBracket  #'direction = #-1
67 tupletBoth = \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 newpage = \notes
76 {
77   \break
78   % urg, only works for TeX output
79   \context Score \applyoutput
80   #(outputproperty-compatibility (make-type-checker 'paper-column-interface)
81     'between-system-string "\\newpage")
82 }
83
84 % dynamic ly:dir?  text script, articulation script ly:dir?     
85 oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
86 voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
87 voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
88 voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
89 voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
90
91         
92 tiny = 
93         \set fontSize = #-2
94
95 small = 
96         \set fontSize = #-1
97
98 normalsize = {
99         \set fontSize = #0
100 }
101
102
103 % End the incipit and print a ``normal line start''.
104 endincipit = \notes \context Staff {
105     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
106     \once \override Staff.Clef  #'full-size-change = ##t
107     \once \override Staff.Clef  #'non-default = ##t
108     \bar ""
109 }
110
111 autoBeamOff = \set autoBeaming = ##f
112 autoBeamOn = \set autoBeaming = ##t
113
114 fatText = \override TextScript  #'no-spacing-rods = ##f
115 emptyText = \override TextScript  #'no-spacing-rods = ##t
116
117 showStaffSwitch = \set followVoice = ##t
118 hideStaffSwitch = \set followVoice = ##f
119
120
121
122 % To remove a Volta bracket or some other graphical object,
123 % set it to turnOff. Example: \set Staff.VoltaBracket = \turnOff
124
125 %%
126 %% DO NOT USE THIS. IT CAN LEAD TO CRASHES.
127 turnOff = #(cons '() '())
128
129 % For drawing vertical chord brackets with \arpeggio
130 % This is a shorthand for the value of the print-function property 
131 % of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
132 % cross-staff brackets are desired. 
133
134 arpeggioBracket = #Arpeggio::brew_chord_bracket
135 arpeggio = #(make-music-by-name 'ArpeggioEvent)
136 glissando = #(make-music-by-name 'GlissandoEvent)
137
138 fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } 
139
140 setMmRestFermata =
141   \once \override MultiMeasureRestNumber  #'text =
142     #fermataMarkup 
143
144
145 hideNotes =\sequential {
146                                 % hide notes, accidentals, etc.
147     \override Dots  #'transparent = ##t
148     \override NoteHead  #'transparent = ##t
149     \override Stem  #'transparent = ##t
150     \override Beam  #'transparent = ##t
151     \override Staff.Accidental  #'transparent = ##t
152 }
153
154
155 unHideNotes = \sequential {
156   \revert Staff.Accidental #'transparent
157   \revert Beam #'transparent
158   \revert Stem #'transparent
159   \revert NoteHead #'transparent
160   \revert Dots #'transparent 
161 }
162
163 germanChords = {
164     \set chordRootNamer = #(chord-name->german-markup #t)
165     \set chordNoteNamer = #note-name->german-markup
166 }
167 semiGermanChords = {
168     \set chordRootNamer = #(chord-name->german-markup #f)
169     \set chordNoteNamer = #note-name->german-markup
170 }