]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
release: 1.1.49
[lilypond.git] / ly / property.ly
1 % property.ly
2 % list of properties that lily recognises
3 % and some shorthands (ugh)
4
5 %{
6
7 SEE THE REFERENCE MANUAL FOR EXPLANATIONS.
8
9 %}
10
11 \version "1.0.20";
12
13 %hmm, (these) abbrevs suck, imo
14 % i guess they're meant as some form of doco
15 % that's what i use them for...
16 stemup =        \property Voice.verticalDirection = \up 
17 stemboth=       \property Voice.verticalDirection = \center
18 stemdown =      \property Voice.verticalDirection = \down
19
20 slurup = \notes {
21         s1*0
22         \property Voice.slurVerticalDirection = \up 
23         }
24 slurboth= \notes {
25         s1*0
26         \property Voice.slurVerticalDirection = \center
27 }
28 slurdown = \notes {     
29         s1*0
30         \property Voice.slurVerticalDirection = \down
31 }
32
33 shifton = \property Voice.horizontalNoteShift = 1
34 shiftoff = \property Voice.horizontalNoteShift = 0
35
36 onevoice = {    
37         \stemboth \shiftoff     
38 }
39
40 voiceone = 
41         \context Voice = one  {
42         \stemup
43 }
44
45 voicetwo = 
46         \context Voice = two {
47         \stemdown
48 }
49
50 voicethree = 
51         \context Voice = three {
52         \stemup
53
54 }
55
56 voicefour = 
57         \context Voice = four {
58         \stemdown
59         \shifton
60 }
61
62
63 % ugh, cluttering global namespace...
64
65 % ugh2. 
66 none=0
67 free=0
68 normal=1
69 traditional=2
70 infinity=10000
71
72 beamslopeproportional = 
73         \property Score.beamslopedamping = \none
74
75 beamslopedamped = 
76         \property Score.beamslopedamping = \normal
77
78
79 beamslopezero = 
80         \property Score.beamslopedamping = \infinity
81
82
83 % this sucks, you'd want to pass an array, at least
84 % (or embedded code: you still can't dictate the slope / stemlength)
85 beamposfree = 
86         \property Score.beamquantisation = \none
87
88
89 beamposnormal = 
90         \property Score.beamquantisation = \normal
91
92
93 beampostraditional = 
94         \property Score.beamquantisation = \traditional
95
96
97 slurnormal = 
98         \property Voice.slurdash = ""
99
100
101 slurdotted = 
102         \property Voice.slurdash = 1
103
104
105 %{
106  for grace note hack, see input/test/grace.ly
107 %}
108 tupletoff = {
109         \property Voice.tupletVisibility = 0
110 }
111 tupleton = {
112         \property Voice.tupletVisibility = 3
113 }
114 tiny  = {
115         \property Voice.fontSize= "-2"
116         \tupletoff %urg
117 }
118
119 small  = {
120         \property Voice.fontSize= "-1"
121 }
122
123 normalsize = {
124         \property Voice.fontSize= "0"
125         \tupleton %urg
126 }
127
128 %{
129   [urg: try at] temporary grace note hack
130   the total visible duration of the grace notes must be half
131   the duration of the 'at' note: e.g.:
132
133   \grace b8 \graceat c4 \ecarg
134   \grace c16 b16 \graceat c4 \ecarg
135
136 grace = {
137         \tiny
138 % it would be so cool not to have to specify these factors each time...
139 % :-(
140         \property Voice.tupletVisibility = 0
141         \[1/16
142 }
143
144 graceat = \melodic {
145         \normalsize
146         \property Voice.tupletVisibility = 0
147         \] \[31/32
148 }
149
150 ecarg =  \melodic {
151         \property Voice.tupletVisibility = 0
152         \]
153         \property Voice.tupletVisibility = 3
154 }
155 %}
156
157 normalkey = {
158         \property Staff.keyoctaviation = 1
159 }
160
161 specialkey = {
162         \property Staff.keyoctaviation = 0
163 }
164
165 % End the incipit and print a ``normal line start''.
166 endincipit = \notes{
167     \partial 16; s16  % Hack to handle e.g. \bar ".|"; \endincipit
168     \property Staff.clefStyle = "fullSizeChanges" 
169     \nobreak \bar "";
170 }
171