]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
release: 1.2.15
[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.2.0";
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 %{ THESE ARE DEPRECATED  %}
41 voiceone = 
42         \context Voice = one  {
43         \stemup
44 }
45
46 voicetwo = 
47         \context Voice = two {
48         \stemdown
49 }
50
51 voicethree = 
52         \context Voice = three {
53         \stemup
54
55 }
56
57 voicefour = 
58         \context Voice = four {
59         \stemdown
60         \shifton
61 }
62
63 %{ END OF DEPRECATED %}
64
65
66 % ugh, cluttering global namespace...
67
68 % ugh2. 
69 infinity=10000
70
71 beamslopeproportional = 
72         \property Score.beamslopedamping = 0
73
74 beamslopedamped = 
75         \property Score.beamslopedamping = 1
76
77
78 beamslopezero = 
79         \property Score.beamslopedamping = \infinity
80
81
82 % this sucks, you'd want to pass an array, at least
83 % (or embedded code: you still can't dictate the slope / stemlength)
84 beamposfree = 
85         \property Score.beamquantisation = 0
86
87
88 beamposnormal = 
89         \property Score.beamquantisation = 1
90
91
92 beampostraditional = 
93         \property Score.beamquantisation = 2
94
95
96 slurnormal = 
97         \property Voice.slurDash = ""
98
99
100 slurdotted = 
101         \property Voice.slurDash = 1
102
103
104 tupletoff = {
105         \property Voice.tupletVisibility = 0
106 }
107 tupleton = {
108         \property Voice.tupletVisibility = 3
109 }
110 tiny  = {
111         \property Voice.fontSize= "-2"
112 }
113
114 small  = {
115         \property Voice.fontSize= "-1"
116 }
117
118 normalsize = {
119         \property Voice.fontSize= "0"
120 }
121
122 normalkey = {
123         \property Staff.keyOctaviation = 1
124 }
125
126 specialkey = {
127         \property Staff.keyOctaviation = 0
128 }
129
130 % End the incipit and print a ``normal line start''.
131 endincipit = \notes{
132     \partial 16; s16  % Hack to handle e.g. \bar ".|"; \endincipit
133     \property Staff.clefStyle = "fullSizeChanges" 
134     \nobreak \bar "";
135 }
136
137 autoBeamOff = \property Voice.noAutoBeaming = "1"
138 autoBeamOn = \property Voice.noAutoBeaming = ""
139
140
141 emptyText = \property Voice.textEmptyDimension = "1"
142 fatText = \property Voice.textEmptyDimension = ""