]> git.donarmstrong.com Git - lilypond.git/blob - ly/property.ly
release: 1.3.147
[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
48 cadenzaOn = \property Score.timing = ##f
49 cadenzaOff = {
50   \property Score.timing = ##t
51   \property Score.measurePosition = #(make-moment 0 1)
52 }
53
54 % dynamic dir?  text script, articulation script dir?   
55 oneVoice = {    
56   \stemBoth
57   \slurBoth
58   \tieBoth
59   \shiftOff
60 }
61
62 voiceOne = {
63   \stemUp
64   \slurUp
65   \tieUp
66 }
67
68 voiceTwo = {
69   \stemDown
70   \slurDown
71   \tieDown
72 }
73    
74 voiceThree = {
75   \stemUp
76   \slurUp
77   \tieUp
78   \shiftOn
79 }
80
81 voiceFour = {
82   \stemDown
83   \slurDown
84   \tieDown
85   \shiftOn
86 }
87
88 % There's also dash, but setting dash period/length should be fixed.
89 slurDotted = \property Voice.Slur \override #'dashed = #1
90 slurSolid = \property Voice.Slur \revert #'dashed
91 tieDotted = \property Voice.Tie \override #'dashed = #1
92 tieSolid = \property Voice.Tie \revert #'dashed
93
94         
95 tiny  = 
96         \property Voice.fontSize= -2
97
98
99 small  = 
100         \property Voice.fontSize= -1
101
102
103 normalsize = {
104         \property Voice.fontSize= 0
105 }
106
107 normalkey = {
108         \property Staff.keyOctaviation = ##f
109 }
110
111 specialkey = {
112         \property Staff.keyOctaviation = ##t
113 }
114
115 % End the incipit and print a ``normal line start''.
116 endincipit = \notes{
117     \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
118     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
119     \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
120     \bar ""
121 }
122
123 autoBeamOff = \property Voice.noAutoBeaming = ##t
124 autoBeamOn = \property Voice.noAutoBeaming = ##f
125
126 emptyText = \property Voice.textNonEmpty = ##f
127 fatText = \property Voice.textNonEmpty = ##t
128
129 showStaffSwitch = \property PianoStaff.followVoice = ##t
130 hideStaffSwitch = \property PianoStaff.followVoice = ##f
131
132
133 % To remove a Volta bracet or some other graphical object,
134 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
135
136 turnOff = #'((meta .  ((interfaces . ()))))