From 8d3cafb5096b4c4555e88aee66052795b0a308c1 Mon Sep 17 00:00:00 2001 From: Neil Puttock Date: Sun, 19 Apr 2009 20:21:54 +0100 Subject: [PATCH] LSR: Update. --- input/lsr/expressive-marks.snippet-list | 1 + ...aking-slurs-with-complex-dash-structure.ly | 39 +++++++++++++++++++ input/lsr/rhythms.snippet-list | 1 + ...aking-slurs-with-complex-dash-structure.ly | 9 ++--- 4 files changed, 45 insertions(+), 5 deletions(-) create mode 100644 input/lsr/making-slurs-with-complex-dash-structure.ly diff --git a/input/lsr/expressive-marks.snippet-list b/input/lsr/expressive-marks.snippet-list index 33515ad24d..ddd1b2dc49 100644 --- a/input/lsr/expressive-marks.snippet-list +++ b/input/lsr/expressive-marks.snippet-list @@ -26,6 +26,7 @@ horizontally-aligning-custom-dynamics-e.g.-sempre-pp,-piu-f,-subito-p.ly inserting-a-caesura.ly laissez-vibrer-ties.ly line-arrows.ly +making-slurs-with-complex-dash-structure.ly modifying-default-values-for-articulation-shorthand-notation.ly piano-template-with-centered-dynamics.ly positioning-text-markups-inside-slurs.ly diff --git a/input/lsr/making-slurs-with-complex-dash-structure.ly b/input/lsr/making-slurs-with-complex-dash-structure.ly new file mode 100644 index 0000000000..035a9bb46e --- /dev/null +++ b/input/lsr/making-slurs-with-complex-dash-structure.ly @@ -0,0 +1,39 @@ +%% Do not edit this file; it is auto-generated from input/new +%% This file is in the public domain. +\version "2.13.1" + +\header { + lsrtags = "rhythms, expressive-marks" + texidoc = " +Slurs can be made with complex dash patterns by defining +the @code{dash-definition} property. @code{dash-definition} +is a list of @code{dash-elements}. A @code{dash-element} is a +list of parameters defining the dash behavior for a segment of +the slur. + +The slur is defined in terms of the bezier parameter t +which ranges from 0 +at the left end of the slur to 1 at the right end of the slur. +@code{dash-element} is a list @code{(start-t stop-t dash-fraction +dash-period)}. The region of the slur from @code{start-t} to +@code{stop-t} will have a fraction @code{dash-fraction} +of each @code{dash-period} black. @code{dash-period} is +defined in terms of staff spaces. @code{dash-fraction} is +set to 1 for a solid slur. +" + doctitle = "Making slurs with complex dash structure" +} % begin verbatim + + +\relative c' { + \once \override + Slur #'dash-definition = #'((0 0.3 0.1 0.75) + (0.3 0.6 1 1) + (0.65 1.0 0.4 0.75)) + c( d e f) + \once \override + Slur #'dash-definition = #'((0 0.25 1 1) + (0.3 0.7 0.4 0.75) + (0.75 1.0 1 1)) + c( d e f) +} diff --git a/input/lsr/rhythms.snippet-list b/input/lsr/rhythms.snippet-list index e2022dc783..b63ad8e08a 100644 --- a/input/lsr/rhythms.snippet-list +++ b/input/lsr/rhythms.snippet-list @@ -26,6 +26,7 @@ grouping-beats.ly guitar-strum-rhythms.ly heavily-customized-polymetric-time-signatures.ly making-an-object-invisible-with-the-transparent-property.ly +making-slurs-with-complex-dash-structure.ly manually-controlling-beam-positions.ly merging-multi-measure-rests-in-a-polyphonic-part.ly modifying-tuplet-bracket-length.ly diff --git a/input/new/making-slurs-with-complex-dash-structure.ly b/input/new/making-slurs-with-complex-dash-structure.ly index fd41dd7c9b..e2d1b8cff7 100644 --- a/input/new/making-slurs-with-complex-dash-structure.ly +++ b/input/new/making-slurs-with-complex-dash-structure.ly @@ -1,6 +1,7 @@ \version "2.13.1" -\header{ +\header { + lsrtags = "rhythms, expressive-marks" texidoc = " Slurs can be made with complex dash patterns by defining the @code{dash-definition} property. @code{dash-definition} @@ -22,16 +23,14 @@ set to 1 for a solid slur. } \relative c' { - \once \override + \once \override Slur #'dash-definition = #'((0 0.3 0.1 0.75) (0.3 0.6 1 1) (0.65 1.0 0.4 0.75)) c( d e f) - \once \override + \once \override Slur #'dash-definition = #'((0 0.25 1 1) (0.3 0.7 0.4 0.75) (0.75 1.0 1 1)) c( d e f) } - - -- 2.39.5