% property.ly
-% list of properties that lily recognises
-% and some shorthands (ugh)
-%{
+\version "1.3.110";
-SEE THE REFERENCE MANUAL FOR EXPLANATIONS.
+stemUp = \property Voice.Stem \override #'direction = #1
+stemDown = \property Voice.Stem \override #'direction = #-1
+stemBoth= \property Voice.Stem \revert #'direction
-%}
+slurUp = \property Voice.Slur \override #'direction = #1
+slurBoth = \property Voice.Slur \revert #'direction
+slurDown = \property Voice.Slur \override #'direction = #-1
+shiftOn = \property Voice.NoteColumn \override #'horizontal-shift = #1
+shiftOnn = \property Voice.NoteColumn \override #'horizontal-shift = #2
+shiftOnnn = \property Voice.NoteColumn \override #'horizontal-shift = #3
+shiftOff = \property Voice.NoteColumn \revert #'horizontal-shift
-\version "1.3.4";
-%hmm, (these) abbrevs suck, imo
-% i guess they're meant as some form of doco
-% that's what i use them for...
-
-stemup = \property Voice.verticalDirection = \up
-stemboth= \property Voice.verticalDirection = \center
-stemdown = \property Voice.verticalDirection = \down
-
-slurup = \property Voice.slurVerticalDirection = \up
-slurboth = \property Voice.slurVerticalDirection = \center
-slurdown = \property Voice.slurVerticalDirection = \down
-shifton = \property Voice.horizontalNoteShift = #1
-shiftoff = \property Voice.horizontalNoteShift = #0
+tieUp = \property Voice.Tie \override #'direction = #1
+tieDown = \property Voice.Tie \override #'direction = #-1
+tieBoth = \property Voice.Tie \revert #'direction
cadenzaOn = \property Score.timing = ##f
-cadenzaOff = { \property Score.timing = ##t
- \property Score.measurePosition = #(make-moment 0 1)
- }
+cadenzaOff = {
+ \property Score.timing = ##t
+ \property Score.measurePosition = #(make-moment 0 1)
+}
-onevoice = {
- \stemboth \shiftoff
+oneVoice = {
+ \stemBoth
+ \slurBoth
+ \tieBoth
+ \shiftOff
}
-voiceone = \stemup
-voicetwo = \stemdown
-voicethree = {
- \stemup
- \shifton
+voiceOne = {
+ \stemUp
+ \slurUp
+ \tieUp
}
-voicefour = {
- \stemdown
- \shifton
+voiceTwo = {
+ \stemDown
+ \slurDown
+ \tieDown
+}
+
+voiceThree = {
+ \stemUp
+ \slurUp
+ \tieUp
+ \shiftOn
}
-% ugh, cluttering global namespace...
-
-% ugh2.
-infinity=10000
-
-beamslopeproportional =
- \property Score.beamSlopedamping = 0
-
-beamslopedamped =
- \property Score.beamSlopedamping = 1
-
-
-beamslopezero =
- \property Score.beamSlopedamping = \infinity
-
-
-% this sucks, you'd want to pass an array, at least
-% (or embedded code: you still can't dictate the slope / stemlength)
-beamposfree =
- \property Score.beamQuantisation = 0
-
-
-beamposnormal =
- \property Score.beamQuantisation = 1
-
-
-beampostraditional =
- \property Score.beamQuantisation = 2
-
-
-slurnormal =
- \property Voice.slurDash = ""
-
-
-slurdotted =
- \property Voice.slurDash = 1
-
-
-tupletoff =
- \property Voice.tupletVisibility = 0
+voiceFour = {
+ \stemDown
+ \slurDown
+ \tieDown
+ \shiftOn
+}
-tupleton =
- \property Voice.tupletVisibility = 3
+slurDotted = \property Voice.Slur \override #'dashed = #1
+slurNoDots = \property Voice.Slur \revert #'dashed
+
tiny =
\property Voice.fontSize= -2
}
normalkey = {
- \property Staff.keyOctaviation = 1
+ \property Staff.keyOctaviation = ##f
}
specialkey = {
- \property Staff.keyOctaviation = 0
+ \property Staff.keyOctaviation = ##t
}
% End the incipit and print a ``normal line start''.
endincipit = \notes{
\partial 16; s16 % Hack to handle e.g. \bar ".|"; \endincipit
- \property Staff.clefStyle = #"fullSizeChanges"
- \nobreak \bar "";
+ \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
+ \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
+ \bar "";
}
autoBeamOff = \property Voice.noAutoBeaming = ##t
autoBeamOn = \property Voice.noAutoBeaming = ##f
+emptyText = \property Voice.textNonEmpty = ##f
+fatText = \property Voice.textNonEmpty = ##t
+
+showStaffSwitch = \property Thread.followThread = ##t
+hideStaffSwitch = \property Thread.followThread = ##f
+
+
+% To remove a Volta bracet or some other graphical object,
+% set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
-emptyText = \property Voice.textEmptyDimension = ##t
-fatText = \property Voice.textEmptyDimension = ##f
+turnOff = #'((meta . ((interfaces . ()))))