David,

 

Welcome.

 

Mark

 

From: David Sumbler <da...@aeolia.co.uk> 
Sent: Sunday, January 26, 2025 8:28 AM
To: carsonm...@ca.rr.com; lilypond-user@gnu.org
Subject: Re: Adding a slur to a turn

 

Thanks for that suggestion.  I copied the 'turnsh' definition from a piece I 
set some time ago, and it looks as if I probably got this from the 
Documentation page you refer to.  The previous usage, though, didn't involve 
slurs, so perhaps that is why I omitted a line or two from what is suggested.

 

Knute and Valentin also made helpful suggestions, but I'll go with this one 
because it is so nearly what I already had.

 

Thanks all for your help.

 

David

 

On Sat, 2025-01-25 at 15:35 -0800, carsonm...@ca.rr.com 
<mailto:carsonm...@ca.rr.com>  wrote:

David,

 

\version "2.24.4"

 

\relative c'' {

  \after 4.

  {

    \once \set suggestAccidentals = ##t

    \once \override AccidentalSuggestion.outside-staff-priority = ##f

    \once \override AccidentalSuggestion.avoid-slur = #'inside

    \once \override AccidentalSuggestion.font-size = -3

    \once \override AccidentalSuggestion.script-priority = -1

    \once \hideNotes

    cis8\turn \noBeam

  }

  a'2^> ( \acciaccatura c8 bes8. a16)

}

 

Above based on:

https://lilypond.org/doc/v2.24/Documentation/notation/expressive-marks-attached-to-notes#Controlling-the-vertical-ordering-of-scripts

 

Mark

 

-----Original Message-----

From: lilypond-user-bounces+carsonmark=ca.rr....@gnu.org 
<mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org>  
<lilypond-user-bounces+carsonmark=ca.rr....@gnu.org 
<mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org> > On Behalf Of 
David Sumbler

Sent: Saturday, January 25, 2025 1:49 PM

To: lilypond-user@gnu.org <mailto:lilypond-user@gnu.org> 

Subject: Adding a slur to a turn

 

\version "2.24.3"

\language "english"

 

turnsh = { \once \set suggestAccidentals = ##t

  \once \override AccidentalSuggestion.font-size = -3

  \once \override AccidentalSuggestion.script-priority = -1

  \once \override AccidentalSuggestion.avoid-slur = #'inside

  \once \hideNotes }

 

{ f''8-.-> d'-> \after 4. { \turnsh gs\turn \noBeam }

  a''2(-> \acciaccatura { c'''8 } bf''8.) a''16-. | }

 

The above code produces a bar of music - I have attached a .pdf of the output.

 

This output is exactly what I want, except that the turn and its accidental 
should appear inside the slur, not outside.  I have tried all sorts of tweaks 
and overrides for the turn and the accidental, but without any success.

 

How can I get the result I want?

 

David

 

 

Reply via email to