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