]> git.donarmstrong.com Git - lilypond.git/blobdiff - ly/property-init.ly
* scripts/convert-ly.py (conv): fixed \context Foo = mixedCaps
[lilypond.git] / ly / property-init.ly
index 1d26dc2a03b0107a4d5cbd102b6613c9e9a974f3..c820c5c7032a70e20d7f9550eecac6eeb1199520 100644 (file)
 % property-init.ly
 
-\version "1.3.146"
+\version "2.4.0"
 
-stemUp = \property Voice.Stem \set #'direction = #1
-stemDown = \property Voice.Stem \set #'direction = #-1 
-stemBoth= \property Voice.Stem \revert #'direction
+stemUp = \override Stem  #'direction = #1
+stemDown = \override Stem  #'direction = #-1 
+stemNeutral= \revert Stem #'direction
 
-slurUp   = \property Voice.Slur \override #'direction = #1
-slurDown = \property Voice.Slur \override #'direction = #-1
-slurBoth = \property Voice.Slur \revert #'direction 
-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 
+slurUp = \override Slur  #'direction = #1
+slurDown = \override Slur  #'direction = #-1
+slurNeutral = \revert Slur #'direction 
 
-tieUp = \property Voice.Tie \override #'direction = #1
-tieDown = \property Voice.Tie \override #'direction = #-1
-tieBoth = \property Voice.Tie \revert #'direction 
+% There's also dash, but setting dash period/length should be fixed.
+slurDotted = \override Slur  #'dashed = #1
+slurSolid = \revert Slur #'dashed
 
-dynamicUp  = {
-  \property Voice.DynamicText \override #'direction = #1
-  \property Voice.DynamicLineSpanner \override #'direction = #1
-}
-dynamicDown = {
-  \property Voice.DynamicText \override #'direction = #-1
-  \property Voice.DynamicLineSpanner \override #'direction = #-1
-}
-dynamicBoth = {
-  \property Voice.DynamicText \revert #'direction
-  \property Voice.DynamicLineSpanner \revert #'direction
-}
 
-scriptUp  = {
-  \property Voice.TextScript \override #'direction = #1
-  \property Voice.Script \override #'direction = #1
-}
-scriptDown = {
-  \property Voice.TextScript \override #'direction = #-1
-  \property Voice.Script \override #'direction = #-1
-}
-scriptBoth = {
-  \property Voice.TextScript \revert #'direction
-  \property Voice.Script \revert #'direction
-}
+phrasingSlurUp = \override PhrasingSlur  #'direction = #1
+phrasingSlurDown = \override PhrasingSlur  #'direction = #-1
+phrasingSlurNeutral = \revert PhrasingSlur #'direction 
+
+shiftOn = \override NoteColumn  #'horizontal-shift = #1
+shiftOnn = \override NoteColumn  #'horizontal-shift = #2
+shiftOnnn = \override NoteColumn  #'horizontal-shift = #3
+shiftOff = \revert NoteColumn #'horizontal-shift 
 
-dotsUp = \property Voice.Dots \override #'direction = #1
-dotsDown = \property Voice.Dots \override #'direction = #-1
-dotsBoth = \property Voice.Dots \revert #'direction 
+tieUp = \override Tie  #'direction = #1
+tieDown = \override Tie  #'direction = #-1
+tieNeutral = \revert Tie #'direction 
 
-% why doubly?
-tupletUp  = {
-  \property Voice.TupletBracket \override #'direction = #1
-  \property Voice.TupletBracket \override #'direction = #1
+tieDotted = \override Tie  #'dashed = #1
+tieSolid = \revert Tie #'dashed
+
+setEasyHeads = \sequential {
+       \override NoteHead #'print-function = #Note_head::brew_ez_stencil
+       \override NoteHead #'Y-extent-callback = #'()
+       \override NoteHead #'X-extent-callback = #'()
 }
-tupletDown = {
-  \property Voice.TupletBracket \override #'direction = #-1
-  \property Voice.TupletBracket \override #'direction = #-1
+
+dynamicUp = {
+  \override DynamicText  #'direction = #1
+  \override DynamicLineSpanner  #'direction = #1
 }
-tupletBoth = {
-  \property Voice.TupletBracket \revert #'direction
-  \property Voice.TupletBracket \revert #'direction
+dynamicDown = {
+  \override DynamicText  #'direction = #-1
+  \override DynamicLineSpanner  #'direction = #-1
+}
+dynamicNeutral = {
+  \revert DynamicText #'direction
+  \revert DynamicLineSpanner #'direction
 }
 
 
+dotsUp = \override Dots  #'direction = #1
+dotsDown = \override Dots  #'direction = #-1
+dotsNeutral = \revert Dots #'direction 
+
+tupletUp = \override TupletBracket  #'direction = #1
+tupletDown = \override TupletBracket  #'direction = #-1
+tupletNeutral = \revert TupletBracket #'direction
 
-cadenzaOn = \property Score.timing = ##f
+cadenzaOn = \set Timing.timing = ##f
 cadenzaOff = {
-  \property Score.timing = ##t
-  \property Score.measurePosition = #(make-moment 0 1)
+  \set Timing.timing = ##t
+  \set Timing.measurePosition = #(ly:make-moment 0 1)
 }
 
-newpage = {
-  \break
-  % urg, only works for TeX output
-  \context Score \outputproperty #(make-type-checker 'paper-column-interface)
-    #'between-system-string = #"\\newpage"
-}
+% dynamic ly:dir?  text script, articulation script ly:dir?    
+oneVoice = #(context-spec-music (make-voice-props-revert) 'Voice)
+voiceOne = #(context-spec-music (make-voice-props-set 0) 'Voice)
+voiceTwo = #(context-spec-music (make-voice-props-set 1) 'Voice)
+voiceThree =#(context-spec-music (make-voice-props-set 2) 'Voice)
+voiceFour = #(context-spec-music (make-voice-props-set 3) 'Voice)
 
-% dynamic dir?  text script, articulation script dir?  
-oneVoice = {   
-  \stemBoth
-  \slurBoth
-  \tieBoth
-  \shiftOff
-}
+       
+tiny = 
+       \set fontSize = #-2
+
+small = 
+       \set fontSize = #-1
 
-voiceOne = {
-  \stemUp
-  \slurUp
-  \tieUp
-  \dotsUp    
+normalsize = {
+       \set fontSize = #0
 }
 
-voiceTwo = {
-  \stemDown
-  \slurDown
-  \tieDown
-  \dotsDown  
 
-}
-   
-voiceThree = {
-  \stemUp
-  \slurUp
-  \tieUp
-  \shiftOn
-  \dotsUp
+% End the incipit and print a ``normal line start''.
+endincipit =  \context Staff {
+    \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
+    \once \override Staff.Clef  #'full-size-change = ##t
+    \once \override Staff.Clef  #'non-default = ##t
+    \bar ""
 }
 
-voiceFour = {
-  \stemDown
-  \slurDown
-  \tieDown
-  \shiftOn
-  \dotsDown
-}
+autoBeamOff = \set autoBeaming = ##f
+autoBeamOn = \set autoBeaming = ##t
 
-% There's also dash, but setting dash period/length should be fixed.
-slurDotted = \property Voice.Slur \override #'dashed = #1
-slurSolid = \property Voice.Slur \revert #'dashed
-tieDotted = \property Voice.Tie \override #'dashed = #1
-tieSolid = \property Voice.Tie \revert #'dashed
+fatText = \override TextScript  #'no-spacing-rods = ##f
+emptyText = \override TextScript  #'no-spacing-rods = ##t
 
-       
-tiny  = 
-       \property Voice.fontSize= -2
+showStaffSwitch = \set followVoice = ##t
+hideStaffSwitch = \set followVoice = ##f
 
 
-small  = 
-       \property Voice.fontSize= -1
 
+% For drawing vertical chord brackets with \arpeggio
+% This is a shorthand for the value of the print-function property 
+% of either Staff.Arpeggio or PianoStaff.Arpeggio, depending whether 
+% cross-staff brackets are desired. 
 
-normalsize = {
-       \property Voice.fontSize= 0
-}
+arpeggio = #(make-music 'ArpeggioEvent)
 
-normalkey = {
-       \property Staff.keyOctaviation = ##f
+arpeggioUp = \sequential {
+  \revert Arpeggio  #'print-function
+  \override Arpeggio  #'arpeggio-direction = #1
 }
-
-specialkey = {
-       \property Staff.keyOctaviation = ##t
+arpeggioDown = \sequential {
+  \revert Arpeggio  #'print-function
+  \override Arpeggio  #'arpeggio-direction = #-1
+}
+arpeggioNeutral = \sequential {
+  \revert Arpeggio  #'print-function
+  \revert Arpeggio  #'arpeggio-direction
+}
+arpeggioBracket = \sequential {
+  \override Arpeggio  #'print-function = #Arpeggio::brew_chord_bracket
 }
 
-% End the incipit and print a ``normal line start''.
-endincipit = \notes{
-    \partial 16 s16  % Hack to handle e.g. \bar ".|" \endincipit
-    \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
-    \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
-    \bar ""
+glissando = #(make-music 'GlissandoEvent)
+
+fermataMarkup = \markup { \musicglyph #"scripts-ufermata" } 
+
+hideNotes =\sequential {
+  % hide notes, accidentals, etc.
+  \override Dots  #'transparent = ##t
+  \override NoteHead  #'transparent = ##t
+  \override NoteHead  #'no-ledgers = ##t
+  \override Stem  #'transparent = ##t
+  \override Beam  #'transparent = ##t
+  \override Accidental  #'transparent = ##t
 }
 
-autoBeamOff = \property Voice.noAutoBeaming = ##t
-autoBeamOn = \property Voice.noAutoBeaming = ##f
 
-emptyText = \property Voice.textNonEmpty = ##f
-fatText = \property Voice.textNonEmpty = ##t
+unHideNotes = \sequential {
+  \revert Accidental #'transparent
+  \revert Beam #'transparent
+  \revert Stem #'transparent
+  \revert NoteHead #'transparent
+  \revert NoteHead #'no-ledgers
+  \revert Dots #'transparent 
+}
+
+germanChords = {
+    \set chordRootNamer = #(chord-name->german-markup #t)
+    \set chordNoteNamer = #note-name->german-markup
+}
+semiGermanChords = {
+    \set chordRootNamer = #(chord-name->german-markup #f)
+    \set chordNoteNamer = #note-name->german-markup
+}
 
-showStaffSwitch = \property PianoStaff.followVoice = ##t
-hideStaffSwitch = \property PianoStaff.followVoice = ##f
 
 
-% To remove a Volta bracet or some other graphical object,
-% set it to turnOff. Example: \property Staff.VoltaBracket = \turnOff
+improvisationOn =  {
+    \set squashedPosition = #0
+    \override NoteHead  #'style = #'slash
+}
 
-turnOff = #'()
+improvisationOff =  {
+    \unset squashedPosition 
+    \revert NoteHead #'style
+}