[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dashed slur proposal
From: |
Bertalan Fodor |
Subject: |
Re: Dashed slur proposal |
Date: |
Sun, 13 Feb 2005 15:59:09 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
Hello,
three patches: modified convert-ly, the defaults for dashed/dotted
slurs, and the doc. (Created against HEAD)
Bert
? slur-dash-patch2
Index: Documentation/user/notation.itely
===================================================================
RCS file: /cvsroot/lilypond/lilypond/Documentation/user/notation.itely,v
retrieving revision 1.183
diff -u -r1.183 notation.itely
--- Documentation/user/notation.itely 7 Feb 2005 17:23:19 -0000 1.183
+++ Documentation/user/notation.itely 13 Feb 2005 14:45:33 -0000
@@ -2089,6 +2089,8 @@
@code{\slurDown},
@cindex @code{\slurNeutral}
@code{\slurNeutral},
address@hidden @code{\slurDashed}
address@hidden,
@cindex @code{\slurDotted}
@code{\slurDotted},
@cindex @code{\slurSolid}
Index: ly/property-init.ly
===================================================================
RCS file: /cvsroot/lilypond/lilypond/ly/property-init.ly,v
retrieving revision 1.67
diff -u -r1.67 property-init.ly
--- ly/property-init.ly 12 Feb 2005 10:34:36 -0000 1.67
+++ ly/property-init.ly 13 Feb 2005 14:45:34 -0000
@@ -12,11 +12,11 @@
% There's also dash, but setting dash period/length should be fixed.
slurDashed = {
- \override Slur #'dash-period = #1
+ \override Slur #'dash-period = #0.75
\override Slur #'dash-fraction = #0.4
}
slurDotted = {
- \override Slur #'dash-period = #1
+ \override Slur #'dash-period = #0.75
\override Slur #'dash-fraction = #0.1
}
slurSolid = {
Index: scripts/convert-ly.py
===================================================================
RCS file: /cvsroot/lilypond/lilypond/scripts/convert-ly.py,v
retrieving revision 1.226
diff -u -r1.226 convert-ly.py
--- scripts/convert-ly.py 4 Feb 2005 13:48:10 -0000 1.226
+++ scripts/convert-ly.py 13 Feb 2005 14:45:35 -0000
@@ -2323,6 +2323,15 @@
conv,
'ly:find-glyph-by-name -> ly:font-get-glyph, remove - from
glyphnames.'))
+def conv (str):
+ str = re.sub (r"\\override\s+(Voice\.)?Slur
#'dashed\s*=\s*#\d*(\.\d+)?",
+ r"\\slurDashed", str)
+ return str
+
+conversions.append (((2, 5, 12),
+ conv,
+ '\set Slur #\'dashed = #X -> \slurDashed'))
+
################################
# END OF CONVERSIONS