]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
dae72e45408259cfd3e4d1602886c14bf49c5c2b
[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 none=0
70 free=0
71 normal=1
72 traditional=2
73 infinity=10000
74
75 beamslopeproportional = 
76         \property Score.beamslopedamping = \none
77
78 beamslopedamped = 
79         \property Score.beamslopedamping = \normal
80
81
82 beamslopezero = 
83         \property Score.beamslopedamping = \infinity
84
85
86 % this sucks, you'd want to pass an array, at least
87 % (or embedded code: you still can't dictate the slope / stemlength)
88 beamposfree = 
89         \property Score.beamquantisation = \none
90
91
92 beamposnormal = 
93         \property Score.beamquantisation = \normal
94
95
96 beampostraditional = 
97         \property Score.beamquantisation = \traditional
98
99
100 slurnormal = 
101         \property Voice.slurDash = ""
102
103
104 slurdotted = 
105         \property Voice.slurDash = 1
106
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 }
117
118 small  = {
119         \property Voice.fontSize= "-1"
120 }
121
122 normalsize = {
123         \property Voice.fontSize= "0"
124 }
125
126 normalkey = {
127         \property Staff.keyOctaviation = 1
128 }
129
130 specialkey = {
131         \property Staff.keyOctaviation = 0
132 }
133
134 % End the incipit and print a ``normal line start''.
135 endincipit = \notes{
136     \partial 16; s16  % Hack to handle e.g. \bar ".|"; \endincipit
137     \property Staff.clefStyle = "fullSizeChanges" 
138     \nobreak \bar "";
139 }
140
141 autoBeamOff = \property Voice.noAutoBeaming = "1"
142 autoBeamOn = \property Voice.noAutoBeaming = ""