Am Mi., 18. Juni 2025 um 20:03 Uhr schrieb Xavier Scheuer <[email protected]>:
>
> On Wed, 18 Jun 2025 at 18:25, Knute Snortum <[email protected]> wrote:
> >
> > Yes, and this affects just the one acciaccatura.  But I think the question 
> > being asked is, "Can I say 'slur up' once and have it affect all proceeding 
> > acciaccaturas?"  And I think the answer to that is no.
>
> Hello,
>
> It is possible to slur up all the acciaccaturas.
>
> startAcciaccaturaMusic = {
>   \slurUp
>   <>\startGraceSlur
>   \temporary \override Flag.stroke-style = "grace"
> }
>
> stopAcciaccaturaMusic = {
>   \revert Flag.stroke-style
>   <>\stopGraceSlur
>   \slurNeutral
> }
>
> Or for the following ones
>   $(add-grace-property 'Voice 'Slur 'direction UP)
> but this will also affect appoggiaturas.
>
> Kind regards,
> Xavier
>

Steve,

if you don't like `remove-grace-property`/`add-grace-property` Xavier
pointed to, you may even define your own acciaccatura/appoggiatura.
Here a possibility, together with other Slur-related commands which
may be of some help:

startGraceSlurUp =
  #(make-music 'SlurEvent 'direction 1 'span-direction START 'spanner-id 'grace)

startAcciaccaturaUpMusic =  {
    <>\startGraceSlurUp
    \temporary \override Flag.stroke-style = "grace"
}

startAppoggiaturaUpMusic =
{
    <>\startGraceSlurUp
}

accUp =
#(def-grace-function startAcciaccaturaUpMusic stopAcciaccaturaMusic
   (_i "Create an acciaccatura from @var{music}, the @code{Slur} points up."))

appUp =
#(def-grace-function startAppoggiaturaUpMusic stopAppoggiaturaMusic
   (_i "Create an appoggiatura from @var{music}, the @code{Slur} points up."))

{
  \acciaccatura { e''8 }
  <g' b' d''>4_(
  \accUp { e''8 }
  <g' b' d''>4
  \once \slurUp
  c'16\=1 ( d'\=1 )
  c'16[\=2 ( d']\=2 )
  \acciaccatura { e''8 }
  <g' b' d''>4
  \appoggiatura { e''8 }
  <g' b' d''>4
  \appUp { e''8 }
  <g' b' d''>4
  \once \slurUp
  c'16\=3 ( d'\=3 )
  c'16[\=4 ( d']\=4 )
  \appoggiatura { e''8 }
  <g' b' d''>4)
}


HTH,
  Harm

Reply via email to