]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
058ffdd2c7391cecd9be980ee281c20d502b564f
[lilypond.git] / ly / property.ly
1 % property.ly
2
3 \version "1.3.146"
4
5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1 
7 stemBoth= \property Voice.Stem \revert #'direction
8
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 
16
17 tieUp = \property Voice.Tie \override #'direction = #1
18 tieDown = \property Voice.Tie \override #'direction = #-1
19 tieBoth = \property Voice.Tie \revert #'direction 
20
21 dynamicUp  = {
22   \property Voice.DynamicText \override #'direction = #1
23   \property Voice.DynamicLineSpanner \override #'direction = #1
24 }
25 dynamicDown = {
26   \property Voice.DynamicText \override #'direction = #-1
27   \property Voice.DynamicLineSpanner \override #'direction = #-1
28 }
29 dynamicBoth = {
30   \property Voice.DynamicText \revert #'direction
31   \property Voice.DynamicLineSpanner \revert #'direction
32 }
33
34 scriptUp  = {
35   \property Voice.TextScript \override #'direction = #1
36   \property Voice.Script \override #'direction = #1
37 }
38 scriptDown = {
39   \property Voice.TextScript \override #'direction = #-1
40   \property Voice.Script \override #'direction = #-1
41 }
42 scriptBoth = {
43   \property Voice.TextScript \revert #'direction
44   \property Voice.Script \revert #'direction
45 }
46
47 tupletUp  = {
48   \property Voice.TupletBracket \override #'direction = #1
49   \property Voice.TupletBracket \override #'direction = #1
50 }
51 tupletDown = {
52   \property Voice.TupletBracket \override #'direction = #-1
53   \property Voice.TupletBracket \override #'direction = #-1
54 }
55 tupletBoth = {
56   \property Voice.TupletBracket \revert #'direction
57   \property Voice.TupletBracket \revert #'direction
58 }
59
60
61
62 cadenzaOn = \property Score.timing = ##f
63 cadenzaOff = {
64   \property Score.timing = ##t
65   \property Score.measurePosition = #(make-moment 0 1)
66 }
67
68 % dynamic dir?  text script, articulation script dir?   
69 oneVoice = {    
70   \stemBoth
71   \slurBoth
72   \tieBoth
73   \shiftOff
74 }
75
76 voiceOne = {
77   \stemUp
78   \slurUp
79   \tieUp
80 }
81
82 voiceTwo = {
83   \stemDown
84   \slurDown
85   \tieDown
86 }
87    
88 voiceThree = {
89   \stemUp
90   \slurUp
91   \tieUp
92   \shiftOn
93 }
94
95 voiceFour = {
96   \stemDown
97   \slurDown
98   \tieDown
99   \shiftOn
100 }
101
102 % There's also dash, but setting dash period/length should be fixed.
103 slurDotted = \property Voice.Slur \override #'dashed = #1
104 slurSolid = \property Voice.Slur \revert #'dashed
105 tieDotted = \property Voice.Tie \override #'dashed = #1
106 tieSolid = \property Voice.Tie \revert #'dashed
107
108         
109 tiny  = 
110         \property Voice.fontSize= -2
111
112
113 small  = 
114         \property Voice.fontSize= -1
115
116
117 normalsize = {
118         \property Voice.fontSize= 0
119 }
120
121 normalkey = {
122         \property Staff.keyOctaviation = ##f
123 }
124
125 specialkey = {
126         \property Staff.keyOctaviation = ##t
127 }
128
129 % End the incipit and print a ``normal line start''.
130 endincipit = \notes{
131     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
132     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
133     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
134     \bar ""
135 }
136
137 autoBeamOff = \property Voice.noAutoBeaming = ##t
138 autoBeamOn = \property Voice.noAutoBeaming = ##f
139
140 emptyText = \property Voice.textNonEmpty = ##f
141 fatText = \property Voice.textNonEmpty = ##t
142
143 showStaffSwitch = \property PianoStaff.followVoice = ##t
144 hideStaffSwitch = \property PianoStaff.followVoice = ##f
145
146
147 % To remove a Volta bracet or some other graphical object,
148 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
149
150 turnOff = #'((meta .  ((interfaces . ()))))