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