lilypond-1.3.153
[lilypond.git] / ly / property.ly
blob5fa998727dd151daa881e4560c1ef6490d3e21c6
1 % property.ly
3 \version "1.3.146"
5 stemUp = \property Voice.Stem \set #'direction = #1
6 stemDown = \property Voice.Stem \set #'direction = #-1
7 stemBoth= \property Voice.Stem \revert #'direction
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
17 tieUp = \property Voice.Tie \override #'direction = #1
18 tieDown = \property Voice.Tie \override #'direction = #-1
19 tieBoth = \property Voice.Tie \revert #'direction
21 dynamicUp = {
22 \property Voice.DynamicText \override #'direction = #1
23 \property Voice.DynamicLineSpanner \override #'direction = #1
25 dynamicDown = {
26 \property Voice.DynamicText \override #'direction = #-1
27 \property Voice.DynamicLineSpanner \override #'direction = #-1
29 dynamicBoth = {
30 \property Voice.DynamicText \revert #'direction
31 \property Voice.DynamicLineSpanner \revert #'direction
34 scriptUp = {
35 \property Voice.TextScript \override #'direction = #1
36 \property Voice.Script \override #'direction = #1
38 scriptDown = {
39 \property Voice.TextScript \override #'direction = #-1
40 \property Voice.Script \override #'direction = #-1
42 scriptBoth = {
43 \property Voice.TextScript \revert #'direction
44 \property Voice.Script \revert #'direction
48 cadenzaOn = \property Score.timing = ##f
49 cadenzaOff = {
50 \property Score.timing = ##t
51 \property Score.measurePosition = #(make-moment 0 1)
54 % dynamic dir? text script, articulation script dir?
55 oneVoice = {
56 \stemBoth
57 \slurBoth
58 \tieBoth
59 \shiftOff
62 voiceOne = {
63 \stemUp
64 \slurUp
65 \tieUp
68 voiceTwo = {
69 \stemDown
70 \slurDown
71 \tieDown
74 voiceThree = {
75 \stemUp
76 \slurUp
77 \tieUp
78 \shiftOn
81 voiceFour = {
82 \stemDown
83 \slurDown
84 \tieDown
85 \shiftOn
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
95 tiny =
96 \property Voice.fontSize= -2
99 small =
100 \property Voice.fontSize= -1
103 normalsize = {
104 \property Voice.fontSize= 0
107 normalkey = {
108 \property Staff.keyOctaviation = ##f
111 specialkey = {
112 \property Staff.keyOctaviation = ##t
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 ""
123 autoBeamOff = \property Voice.noAutoBeaming = ##t
124 autoBeamOn = \property Voice.noAutoBeaming = ##f
126 emptyText = \property Voice.textNonEmpty = ##f
127 fatText = \property Voice.textNonEmpty = ##t
129 showStaffSwitch = \property PianoStaff.followVoice = ##t
130 hideStaffSwitch = \property PianoStaff.followVoice = ##f
133 % To remove a Volta bracet or some other graphical object,
134 % set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
136 turnOff = #'((meta . ((interfaces . ()))))