]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
patch::: 1.4.1.jcn2
[lilypond.git] / ly / property.ly
1 % property.ly
2
3 \version "1.3.146"
4
5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1 
7 stemBoth= \property Voice.Stem \revert #'direction
8
9 slurUp   = \property Voice.Slur \override #'direction = #1
10 slurDown = \property Voice.Slur \override #'direction = #-1
11 slurBoth = \property Voice.Slur \revert #'direction 
12 shiftOn  = \property Voice.NoteColumn \override #'horizontal-shift = #1
13 shiftOnn  = \property Voice.NoteColumn \override #'horizontal-shift = #2
14 shiftOnnn  = \property Voice.NoteColumn \override #'horizontal-shift = #3
15 shiftOff  = \property Voice.NoteColumn \revert #'horizontal-shift 
16
17 tieUp = \property Voice.Tie \override #'direction = #1
18 tieDown = \property Voice.Tie \override #'direction = #-1
19 tieBoth = \property Voice.Tie \revert #'direction 
20
21 dynamicUp  = {
22   \property Voice.DynamicText \override #'direction = #1
23   \property Voice.DynamicLineSpanner \override #'direction = #1
24 }
25 dynamicDown = {
26   \property Voice.DynamicText \override #'direction = #-1
27   \property Voice.DynamicLineSpanner \override #'direction = #-1
28 }
29 dynamicBoth = {
30   \property Voice.DynamicText \revert #'direction
31   \property Voice.DynamicLineSpanner \revert #'direction
32 }
33
34 scriptUp  = {
35   \property Voice.TextScript \override #'direction = #1
36   \property Voice.Script \override #'direction = #1
37 }
38 scriptDown = {
39   \property Voice.TextScript \override #'direction = #-1
40   \property Voice.Script \override #'direction = #-1
41 }
42 scriptBoth = {
43   \property Voice.TextScript \revert #'direction
44   \property Voice.Script \revert #'direction
45 }
46
47 tupletUp  = {
48   \property Voice.TupletBracket \override #'direction = #1
49   \property Voice.TupletBracket \override #'direction = #1
50 }
51 tupletDown = {
52   \property Voice.TupletBracket \override #'direction = #-1
53   \property Voice.TupletBracket \override #'direction = #-1
54 }
55 tupletBoth = {
56   \property Voice.TupletBracket \revert #'direction
57   \property Voice.TupletBracket \revert #'direction
58 }
59
60
61
62 cadenzaOn = \property Score.timing = ##f
63 cadenzaOff = {
64   \property Score.timing = ##t
65   \property Score.measurePosition = #(make-moment 0 1)
66 }
67
68 newpage = {
69   \break
70   % urg, only works for TeX output
71   \context Score \outputproperty #(make-type-checker 'paper-column-interface)
72     #'between-system-string = #"\\newpage"
73 }
74
75 % dynamic dir?  text script, articulation script dir?   
76 oneVoice = {    
77   \stemBoth
78   \slurBoth
79   \tieBoth
80   \shiftOff
81 }
82
83 voiceOne = {
84   \stemUp
85   \slurUp
86   \tieUp
87 }
88
89 voiceTwo = {
90   \stemDown
91   \slurDown
92   \tieDown
93 }
94    
95 voiceThree = {
96   \stemUp
97   \slurUp
98   \tieUp
99   \shiftOn
100 }
101
102 voiceFour = {
103   \stemDown
104   \slurDown
105   \tieDown
106   \shiftOn
107 }
108
109 % There's also dash, but setting dash period/length should be fixed.
110 slurDotted = \property Voice.Slur \override #'dashed = #1
111 slurSolid = \property Voice.Slur \revert #'dashed
112 tieDotted = \property Voice.Tie \override #'dashed = #1
113 tieSolid = \property Voice.Tie \revert #'dashed
114
115         
116 tiny  = 
117         \property Voice.fontSize= -2
118
119
120 small  = 
121         \property Voice.fontSize= -1
122
123
124 normalsize = {
125         \property Voice.fontSize= 0
126 }
127
128 normalkey = {
129         \property Staff.keyOctaviation = ##f
130 }
131
132 specialkey = {
133         \property Staff.keyOctaviation = ##t
134 }
135
136 % End the incipit and print a ``normal line start''.
137 endincipit = \notes{
138     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
139     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
140     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
141     \bar ""
142 }
143
144 autoBeamOff = \property Voice.noAutoBeaming = ##t
145 autoBeamOn = \property Voice.noAutoBeaming = ##f
146
147 emptyText = \property Voice.textNonEmpty = ##f
148 fatText = \property Voice.textNonEmpty = ##t
149
150 showStaffSwitch = \property PianoStaff.followVoice = ##t
151 hideStaffSwitch = \property PianoStaff.followVoice = ##f
152
153
154 % To remove a Volta bracet or some other graphical object,
155 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
156
157 turnOff = #'((meta .  ((interfaces . ()))))