lilypond-1.5.9
[lilypond.git] / ly / property-init.ly
blob83ea32eb9ab09981ec9efcfeb8a5272774088221
1 % property-init.ly
3 \version "1.3.146"
5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1
7 stemBoth= \property Voice.Stem \revert #'direction
9 slurUp = \property Voice.Slur \override #'direction = #1
10 slurDown = \property Voice.Slur \override #'direction = #-1
11 slurBoth = \property Voice.Slur \revert #'direction
12 shiftOn = \property Voice.NoteColumn \override #'horizontal-shift = #1
13 shiftOnn = \property Voice.NoteColumn \override #'horizontal-shift = #2
14 shiftOnnn = \property Voice.NoteColumn \override #'horizontal-shift = #3
15 shiftOff = \property Voice.NoteColumn \revert #'horizontal-shift
17 tieUp = \property Voice.Tie \override #'direction = #1
18 tieDown = \property Voice.Tie \override #'direction = #-1
19 tieBoth = \property Voice.Tie \revert #'direction
21 dynamicUp = {
22 \property Voice.DynamicText \override #'direction = #1
23 \property Voice.DynamicLineSpanner \override #'direction = #1
25 dynamicDown = {
26 \property Voice.DynamicText \override #'direction = #-1
27 \property Voice.DynamicLineSpanner \override #'direction = #-1
29 dynamicBoth = {
30 \property Voice.DynamicText \revert #'direction
31 \property Voice.DynamicLineSpanner \revert #'direction
34 scriptUp = {
35 \property Voice.TextScript \override #'direction = #1
36 \property Voice.Script \override #'direction = #1
38 scriptDown = {
39 \property Voice.TextScript \override #'direction = #-1
40 \property Voice.Script \override #'direction = #-1
42 scriptBoth = {
43 \property Voice.TextScript \revert #'direction
44 \property Voice.Script \revert #'direction
47 dotsUp = \property Voice.Dots \override #'direction = #1
48 dotsDown = \property Voice.Dots \override #'direction = #-1
49 dotsBoth = \property Voice.Dots \revert #'direction
51 % why doubly?
52 tupletUp = {
53 \property Voice.TupletBracket \override #'direction = #1
54 \property Voice.TupletBracket \override #'direction = #1
56 tupletDown = {
57 \property Voice.TupletBracket \override #'direction = #-1
58 \property Voice.TupletBracket \override #'direction = #-1
60 tupletBoth = {
61 \property Voice.TupletBracket \revert #'direction
62 \property Voice.TupletBracket \revert #'direction
67 cadenzaOn = \property Score.timing = ##f
68 cadenzaOff = {
69 \property Score.timing = ##t
70 \property Score.measurePosition = #(make-moment 0 1)
73 newpage = {
74 \break
75 % urg, only works for TeX output
76 \context Score \outputproperty #(make-type-checker 'paper-column-interface)
77 #'between-system-string = #"\\newpage"
80 % dynamic dir? text script, articulation script dir?
81 oneVoice = {
82 \stemBoth
83 \slurBoth
84 \tieBoth
85 \shiftOff
88 voiceOne = {
89 \stemUp
90 \slurUp
91 \tieUp
92 \dotsUp
95 voiceTwo = {
96 \stemDown
97 \slurDown
98 \tieDown
99 \dotsDown
103 voiceThree = {
104 \stemUp
105 \slurUp
106 \tieUp
107 \shiftOn
108 \dotsUp
111 voiceFour = {
112 \stemDown
113 \slurDown
114 \tieDown
115 \shiftOn
116 \dotsDown
119 % There's also dash, but setting dash period/length should be fixed.
120 slurDotted = \property Voice.Slur \override #'dashed = #1
121 slurSolid = \property Voice.Slur \revert #'dashed
122 tieDotted = \property Voice.Tie \override #'dashed = #1
123 tieSolid = \property Voice.Tie \revert #'dashed
126 tiny =
127 \property Voice.fontSize= -2
130 small =
131 \property Voice.fontSize= -1
134 normalsize = {
135 \property Voice.fontSize= 0
138 normalkey = {
139 \property Staff.keyOctaviation = ##f
142 specialkey = {
143 \property Staff.keyOctaviation = ##t
146 % End the incipit and print a ``normal line start''.
147 endincipit = \notes{
148 \partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
149 \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
150 \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
151 \bar ""
154 autoBeamOff = \property Voice.noAutoBeaming = ##t
155 autoBeamOn = \property Voice.noAutoBeaming = ##f
157 emptyText = \property Voice.textNonEmpty = ##f
158 fatText = \property Voice.textNonEmpty = ##t
160 showStaffSwitch = \property PianoStaff.followVoice = ##t
161 hideStaffSwitch = \property PianoStaff.followVoice = ##f
164 % To remove a Volta bracet or some other graphical object,
165 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
167 turnOff = #'((meta . ((interfaces . ()))))