]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
d416d2edd9db4a044320ba9d2018e7596fb714b8
[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.3.4";
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
17 stemup =        \property Voice.verticalDirection = \up 
18 stemboth=       \property Voice.verticalDirection = \center
19 stemdown =      \property Voice.verticalDirection = \down
20
21 slurup   = \property Voice.slurVerticalDirection = \up 
22 slurboth = \property Voice.slurVerticalDirection = \center
23 slurdown = \property Voice.slurVerticalDirection = \down
24 shifton  = \property Voice.horizontalNoteShift = #1
25 shiftoff = \property Voice.horizontalNoteShift = #0
26
27 cadenzaOn = \property Score.timing = ##f
28 cadenzaOff = { \property Score.timing = ##t
29         \property Score.measurePosition = #(make-moment 0 1)
30         }
31
32         
33 onevoice = {    
34         \stemboth \shiftoff     
35 }
36
37 voiceone = \stemup
38 voicetwo = \stemdown
39 voicethree = {
40         \stemup
41         \shifton
42 }
43
44 voicefour = {
45         \stemdown
46         \shifton
47 }
48
49 % ugh, cluttering global namespace...
50
51 % ugh2. 
52 infinity=10000
53
54 beamslopeproportional = 
55         \property Score.beamSlopedamping = 0
56
57 beamslopedamped = 
58         \property Score.beamSlopedamping = 1
59
60
61 beamslopezero = 
62         \property Score.beamSlopedamping = \infinity
63
64
65 % this sucks, you'd want to pass an array, at least
66 % (or embedded code: you still can't dictate the slope / stemlength)
67 beamposfree = 
68         \property Score.beamQuantisation = 0
69
70
71 beamposnormal = 
72         \property Score.beamQuantisation = 1
73
74
75 beampostraditional = 
76         \property Score.beamQuantisation = 2
77
78
79 slurnormal = 
80         \property Voice.slurDash = ""
81
82
83 slurdotted =                            
84         \property Voice.slurDash = 1
85
86
87 tupletoff =
88         \property Voice.tupletVisibility = 0
89
90 tupleton = 
91         \property Voice.tupletVisibility = 3
92
93 tiny  = 
94         \property Voice.fontSize= -2
95
96
97 small  = 
98         \property Voice.fontSize= -1
99
100
101 normalsize = {
102         \property Voice.fontSize= 0
103 }
104
105 normalkey = {
106         \property Staff.keyOctaviation = 1
107 }
108
109 specialkey = {
110         \property Staff.keyOctaviation = 0
111 }
112
113 % End the incipit and print a ``normal line start''.
114 endincipit = \notes{
115     \partial 16; s16  % Hack to handle e.g. \bar ".|"; \endincipit
116     \property Staff.clefStyle = #"fullSizeChanges" 
117     \nobreak \bar "";
118 }
119
120 autoBeamOff = \property Voice.noAutoBeaming = ##t
121 autoBeamOn = \property Voice.noAutoBeaming = ##f
122
123
124 emptyText = \property Voice.textEmptyDimension = ##t
125 fatText = \property Voice.textEmptyDimension = ##f