Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
LilyPond wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Making slurs with complex dash structure
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Slurs can be composed of complex dash patterns by setting the <code>dash-definition</code> property, which is a list of slur segments, which in turn are lists of parameters setting up the dash behavior of the given segment. Slur segments are defined in terms of the Bézier parameter <var>t</var>, which ranges from 0 at the left end of the slur to 1 at the right end of the slur. A slur segment has the form <code>(<var>start-t</var> <var>stop-t</var> <var>dash-fraction</var> <var>dash-period</var>)</code>. In the segment spanning the range <var>start-t</var> to <var>stop-t</var>, the dash pattern is defined by the values of <var>dash-fraction</var> and <var>dash-period</var>. <var>dash-fraction</var> specifies how much of a dash period is black; if set to 1 you get a solid slur segment. The unit for <var>dash-period</var> is staff spaces. <lilypond version="2.24"> \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)) c4( 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 )) c4( d e f) } </lilypond> [[Category:Rhythms]] [[Category:Expressive marks]] [[Category:Included in the official documentation]] [[Category:Snippet]]
Summary:
Please note that all contributions to LilyPond wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Meta:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Making slurs with complex dash structure
Add topic