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