]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/property.ly
release: 1.3.106
[lilypond.git] / ly / property.ly
index a8a404f0556ae65817c6b97092aecaa2264c68ef..754e2854cc26f367902879859a206110532cbe20 100644 (file)
 % property.ly
-% list of properties that lily recognises
-% and some shorthands (ugh)
 
-%{
+\version "1.3.96";
 
-SEE THE REFERENCE MANUAL FOR EXPLANATIONS.
+stemUp = \property Voice.Stem \push #'direction = #1
+stemDown = \property Voice.Stem \push #'direction = #-1 
+stemBoth= \property Voice.Stem \pop #'direction
 
-%}
+slurUp   = \property Voice.Slur \push #'direction = #1
+slurBoth = \property Voice.Slur \pop #'direction 
+slurDown = \property Voice.Slur \push #'direction = #-1
+shiftOn  = \property Voice.NoteColumn \push #'horizontal-shift = #1
+shiftOnn  = \property Voice.NoteColumn \push #'horizontal-shift = #2
+shiftOnnn  = \property Voice.NoteColumn \push #'horizontal-shift = #3
+shiftOff  = \property Voice.NoteColumn \pop #'horizontal-shift 
 
-\version "1.1.52";
 
-%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
+tieUp = \property Voice.Tie \push #'direction = #1
+tieDown = \property Voice.Tie \push #'direction = #-1
+tieBoth = \property Voice.Tie \pop #'direction 
 
-slurup = \notes {
-       s1*0
-       \property Voice.slurVerticalDirection = \up 
+cadenzaOn = \property Score.timing = ##f
+cadenzaOff = { \property Score.timing = ##t
+       \property Score.measurePosition = #(make-moment 0 1)
        }
-slurboth= \notes {
-       s1*0
-       \property Voice.slurVerticalDirection = \center
-}
-slurdown = \notes {    
-       s1*0
-       \property Voice.slurVerticalDirection = \down
-}
-
-shifton = \property Voice.horizontalNoteShift = 1
-shiftoff = \property Voice.horizontalNoteShift = 0
-
-onevoice = {   
-       \stemboth \shiftoff     
-}
 
-voiceone = 
-       \context Voice = one  {
-       \stemup
+       
+oneVoice = {   
+       \stemBoth
+       \tieBoth
+       \shiftOff
 }
 
-voicetwo = 
-       \context Voice = two {
-       \stemdown
+voiceOne = { \stemUp
+   \tieUp
 }
-
-voicethree = 
-       \context Voice = three {
-       \stemup
-
+voiceTwo = { \stemDown
+   \tieDown
+   }
+   
+voiceThree = {
+       \stemUp
+       \shiftOn
 }
 
-voicefour = 
-       \context Voice = four {
-       \stemdown
-       \shifton
+voiceFour = {
+       \stemDown
+       \shiftOn
 }
 
+slurDotted = \property Voice.Slur \push #'dashed = #1
+slurNoDots = \property Voice.Slur \pop #'dashed
 
-% ugh, cluttering global namespace...
-
-% ugh2. 
-none=0
-free=0
-normal=1
-traditional=2
-infinity=10000
-
-beamslopeproportional = 
-       \property Score.beamslopedamping = \none
-
-beamslopedamped = 
-       \property Score.beamslopedamping = \normal
-
-
-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 = \none
-
+       
+tiny  = 
+       \property Voice.fontSize= -2
 
-beamposnormal = 
-       \property Score.beamquantisation = \normal
 
+small  = 
+       \property Voice.fontSize= -1
 
-beampostraditional = 
-       \property Score.beamquantisation = \traditional
-
-
-slurnormal = 
-       \property Voice.slurDash = ""
-
-
-slurdotted = 
-       \property Voice.slurDash = 1
-
-
-tupletoff = {
-       \property Voice.tupletVisibility = 0
-}
-tupleton = {
-       \property Voice.tupletVisibility = 3
-}
-tiny  = {
-       \property Voice.fontSize= "-2"
-}
-
-small  = {
-       \property Voice.fontSize= "-1"
-}
 
 normalsize = {
-       \property Voice.fontSize= "0"
+       \property Voice.fontSize= 0
 }
 
 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 "";
+    \property Staff.clefStyle = #"fullSizeChanges" 
+    \bar "";
 }
 
-autoBeamOff = \property Voice.beamAuto = ""
-autoBeamOn = \property Voice.beamAuto = "1"  
+autoBeamOff = \property Voice.noAutoBeaming = ##t
+autoBeamOn = \property Voice.noAutoBeaming = ##f
+
+
+emptyText = \property Voice.textNonEmpty = ##f
+fatText = \property Voice.textNonEmpty = ##t
+