]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
release: 1.1.65
[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.1.52";
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 tupletoff = {
106         \property Voice.tupletVisibility = 0
107 }
108 tupleton = {
109         \property Voice.tupletVisibility = 3
110 }
111 tiny  = {
112         \property Voice.fontSize= "-2"
113 }
114
115 small  = {
116         \property Voice.fontSize= "-1"
117 }
118
119 normalsize = {
120         \property Voice.fontSize= "0"
121 }
122
123 normalkey = {
124         \property Staff.keyoctaviation = 1
125 }
126
127 specialkey = {
128         \property Staff.keyoctaviation = 0
129 }
130
131 % End the incipit and print a ``normal line start''.
132 endincipit = \notes{
133     \partial 16; s16  % Hack to handle e.g. \bar ".|"; \endincipit
134     \property Staff.clefStyle = "fullSizeChanges" 
135     \nobreak \bar "";
136 }
137
138 autoBeamOff = \property Voice.beamAuto = ""
139 autoBeamOn = \property Voice.beamAuto = "1"