X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=ly%2Fproperty-init.ly;h=494bfd3eec6646a2bb4827ff01218db04189ad08;hb=a42aaa559b71ce5776795fa11a7e1df9110d85b7;hp=0175bb798fe405134afd05236f81f182001af729;hpb=2940cdd12c135ef94e4c95ac815e76014eef9c79;p=lilypond.git diff --git a/ly/property-init.ly b/ly/property-init.ly index 0175bb798f..494bfd3eec 100644 --- a/ly/property-init.ly +++ b/ly/property-init.ly @@ -1,6 +1,6 @@ % property-init.ly -\version "2.14.0" +\version "2.15.10" %% for dashed slurs, phrasing slurs, and ties #(define (make-simple-dash-definition dash-fraction dash-period) @@ -14,6 +14,17 @@ defaultNoteHeads = (revert-head-style '(NoteHead TabNoteHead))) +accidentalStyle = +#(define-music-function + (parser location context style) ((symbol?) string?) + (_i "Set accidental style to @var{style}, a string. If an optional +@var{context} symbol is given, e.g. @code{#'Staff} or @code{#'Voice}, +the settings are applied to that context. Otherwise, the context +defaults to @samp{Staff}, except for piano styles, which use +@samp{GrandStaff} as a context." ) + (if context + (set-accidental-style (string->symbol style) context) + (set-accidental-style (string->symbol style)))) %% arpeggios @@ -233,6 +244,7 @@ hideNotes = { \override NoteHead #'transparent = ##t \override NoteHead #'no-ledgers = ##t \override Stem #'transparent = ##t + \override Flag #'transparent = ##t \override Beam #'transparent = ##t \override Accidental #'transparent = ##t } @@ -240,6 +252,7 @@ unHideNotes = { \revert Accidental #'transparent \revert Beam #'transparent \revert Stem #'transparent + \revert Flag #'transparent \revert NoteHead #'transparent \revert NoteHead #'no-ledgers \revert Dots #'transparent @@ -305,7 +318,7 @@ phrasingSlurDashPattern = #(define-music-function (parser location dash-fraction dash-period) (number? number?) (_i "Set up a custom style of dash pattern for @var{dash-fraction} ratio of -line to space repeated at @var{dash-period} interval.") +line to space repeated at @var{dash-period} interval for phrasing slurs.") #{ \override PhrasingSlur #'dash-definition = $(make-simple-dash-definition dash-fraction dash-period) @@ -341,6 +354,10 @@ back to the lilypond source statement.") (ly:set-option 'point-and-click #f) (make-music 'SequentialMusic 'void #t)) +pointAndClickTypes = +#(define-void-function (parser location types) (list-or-symbol?) + (_i "Set a type or list of types (such as @code{#'note-event}) for which point-and-click info is generated.") + (ly:set-option 'point-and-click types)) %% predefined fretboards @@ -389,6 +406,8 @@ slurNeutral = \revert Slur #'direction slurDashPattern = #(define-music-function (parser location dash-fraction dash-period) (number? number?) + (_i "Set up a custom style of dash pattern for @var{dash-fraction} +ratio of line to space repeated at @var{dash-period} interval for slurs.") #{ \override Slur #'dash-definition = $(make-simple-dash-definition dash-fraction dash-period) @@ -424,7 +443,7 @@ tabFullNotation = { % stems (the half note gets a double stem) \revert TabVoice.Stem #'length \revert TabVoice.Stem #'no-stem-extend - \revert TabVoice.Stem #'flag-style + \revert TabVoice.Flag #'style \revert TabVoice.Stem #'details \revert TabVoice.Stem #'transparent \override TabVoice.Stem #'stencil = #tabvoice::draw-double-stem-for-half-notes @@ -508,6 +527,8 @@ tieNeutral = \revert Tie #'direction tieDashPattern = #(define-music-function (parser location dash-fraction dash-period) (number? number?) + (_i "Set up a custom style of dash pattern for @var{dash-fraction} +ratio of line to space repeated at @var{dash-period} interval for ties.") #{ \override Tie #'dash-definition = $(make-simple-dash-definition dash-fraction dash-period) @@ -544,30 +565,35 @@ voiceOneStyle = { \override NoteHead #'style = #'diamond \override NoteHead #'color = #red \override Stem #'color = #red + \override Flag #'color = #red \override Beam #'color = #red } voiceTwoStyle = { \override NoteHead #'style = #'triangle \override NoteHead #'color = #blue \override Stem #'color = #blue + \override Flag #'color = #blue \override Beam #'color = #blue } voiceThreeStyle = { \override NoteHead #'style = #'xcircle \override NoteHead #'color = #green \override Stem #'color = #green + \override Flag #'color = #green \override Beam #'color = #green } voiceFourStyle = { \override NoteHead #'style = #'cross \override NoteHead #'color = #magenta \override Stem #'color = #magenta + \override Flag #'color = #magenta \override Beam #'color = #magenta } voiceNeutralStyle = { \revert NoteHead #'style \revert NoteHead #'color \revert Stem #'color + \revert Flag #'color \revert Beam #'color }