[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: add dashed and dotted style for phrasing slurs
From: |
Till Rettig |
Subject: |
PATCH: add dashed and dotted style for phrasing slurs |
Date: |
Sat, 22 Nov 2008 20:06:47 +0200 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
Hi,
could somebody please have a look at the attached patch which adds
predefined commands for dashed and dotted phrasing slurs. Please apply
it also to master, since I don't have a master branch set up to push.
Thanks
Till
>From 3a2f546cd5e8df0d909d65469201ccbc677b4048 Mon Sep 17 00:00:00 2001
From: Till Rettig <address@hidden>
Date: Sat, 22 Nov 2008 18:31:45 +0200
Subject: [PATCH] Add dashed and dotted phrasing slurs
*Add dashed and dotted phrasing slur definitions to property-init.ly
*Add regression test file
*Mention dashed and dotted phrasing slurs in the documentation
---
Documentation/user/expressive.itely | 24 +++++++++++++++++++++++-
input/regression/phrasing-slur-dash.ly | 26 ++++++++++++++++++++++++++
ly/property-init.ly | 14 ++++++++++++++
3 files changed, 63 insertions(+), 1 deletions(-)
create mode 100644 input/regression/phrasing-slur-dash.ly
diff --git a/Documentation/user/expressive.itely
b/Documentation/user/expressive.itely
index 2376904..1c8730d 100644
--- a/Documentation/user/expressive.itely
+++ b/Documentation/user/expressive.itely
@@ -630,6 +630,12 @@ e2) d\)
@funindex phrasingSlurDown
@funindex \phrasingSlurNeutral
@funindex phrasingSlurNeutral
address@hidden phrasingSlurDashed
address@hidden \phrasingSlurDashed
address@hidden \phrasingSlurDotted
address@hidden phrasingSlurDotted
address@hidden \phrasingSlurSolid
address@hidden phrasingSlurSolid
Typographically, a phrasing slur behaves almost exactly like a
normal slur. However, they are treated as different objects; a
@@ -652,12 +658,28 @@ c4\( g' c,( b) | c1\)
Simultaneous or overlapping phrasing slurs are not permitted.
+Phrasing slurs can be solid, dotted, or dashed. Solid is the default
+style for phrasing slurs:
+
address@hidden,quote,relative=1]
+c4\( e g2\)
+\phrasingSlurDashed
+g4\( e c2\)
+\phrasingSlurDotted
+c4\( e g2\)
+\phrasingSlurSolid
+g4\( e c2\)
address@hidden lilypond
+
@predefined
@code{\phrasingSlurUp},
@code{\phrasingSlurDown},
address@hidden
address@hidden,
address@hidden,
address@hidden,
address@hidden
@seealso
diff --git a/input/regression/phrasing-slur-dash.ly
b/input/regression/phrasing-slur-dash.ly
new file mode 100644
index 0000000..f529da3
--- /dev/null
+++ b/input/regression/phrasing-slur-dash.ly
@@ -0,0 +1,26 @@
+\version "2.11.51"
+\header {texidoc = "@cindex Phrasing slur, dotted, dashed
+The appearance of phrasing slurs may be changed from solid to dotted or dashed.
+"
+}
+\layout{ ragged-right=##t }
+
+
+\relative c'{
+ c\( d e c\) |
+ \phrasingSlurDotted
+ c\( d e c\) |
+ \phrasingSlurDashed
+ c\( d e c\) |
+ \override PhrasingSlur #'dash-period = #2.0
+ \override PhrasingSlur #'dash-fraction = #0.4
+ c\( d e c\) |
+ \phrasingSlurSolid
+ c\( d e c\) |
+}
+
+
+
+
+
+
diff --git a/ly/property-init.ly b/ly/property-init.ly
index c0d43eb..cbedfb2 100644
--- a/ly/property-init.ly
+++ b/ly/property-init.ly
@@ -29,6 +29,20 @@ phrasingSlurUp = \override PhrasingSlur #'direction = #UP
phrasingSlurDown = \override PhrasingSlur #'direction = #DOWN
phrasingSlurNeutral = \revert PhrasingSlur #'direction
+%% There's also dash, but setting dash period/length should be fixed.
+phrasingSlurDashed = {
+ \override PhrasingSlur #'dash-period = #0.75
+ \override PhrasingSlur #'dash-fraction = #0.4
+}
+phrasingSlurDotted = {
+ \override PhrasingSlur #'dash-period = #0.75
+ \override PhrasingSlur #'dash-fraction = #0.1
+}
+phrasingSlurSolid = {
+ \revert PhrasingSlur #'dash-period
+ \revert PhrasingSlur #'dash-fraction
+}
+
mergeDifferentlyDottedOn = {
\override Staff.NoteCollision #'merge-differently-dotted = ##t
}
--
1.5.4.3.325.g6d216
- PATCH: add dashed and dotted style for phrasing slurs,
Till Rettig <=