Am Samstag, 8. März 2008 schrieb Reinhold Kainhofer:
> Am Samstag, 8. März 2008 schrieb Peter Kaplan:
> > I am interested in making phrasing slurs that are (graphically, not
> > rhythmically) dotted or dashed, in order to differentiate them visually
> > from ordinary legato slurs (to be represented with solid slurs).  Is
> > there a way to do this straightforwardly in lilypond?
>
> http://lsr.dsi.unimi.it/LSR/Item?id=133

Oh, right, if you want to have these settings apply to real phrasing slurs 
generated by \( and \), then you can't use \slurDashed, but have to apply the 
appropriate settings on the PhrasingSlur object. if you look at the file 
ly/property-init.ly, there is the definition for \slurDashed:

slurDashed = {
  \override Slur #'dash-period = #0.75
  \override Slur #'dash-fraction = #0.4
}

This sets the appropriate settings for slurs. For phrasing slurs, you would 
simply have to define your own command, setting dash-period for PhrasingSlur:

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
}

Sample file (the lsr example, adapted to phrasing slurs) is attached.

cheers,
Reinhold

PS: I wonder if we shouldn't add these definitions to ly/property-init.ly for 
the sake of consistency...

-- 
------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
  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
  }


  \score{
  \relative c'{
    c\( d( e)  c\) |
    \phrasingSlurDotted
    c\( d( e)  c\) |
    \phrasingSlurSolid
    c\( d( e)  c\) |
    \phrasingSlurDashed
    c\( d( e)  c\) |
    \phrasingSlurSolid
    c\( d( e)  c\) |
  }
  \layout{ raggedright=##t }
}



Attachment: phrasing_slur_dashed.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to