lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: double slurs within beamed notes


From: Lucas Werkmeister
Subject: Re: double slurs within beamed notes
Date: Thu, 29 Mar 2018 02:06:22 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hi Kieren, thanks for taking a look!

On 29.03.2018 01:52, Kieren MacMillan wrote:
Hi Lucas,

I did find one workaround, and I’ll describe it just in case someone else with the same problem finds this email later, but it is horrible:
Here’s another… though I’m not sure it’s much less horrible:

%%%  SNIPPET ENDS
\version "2.19.80"

stuff = {
  <b'-\tweak Slur.extra-offset #'(0 . -0.4) \=1 _( f''-\tweak Slur.extra-offset #'(0 . 0.6) \=2 ^(>16 <c''\=1 ) e'' \=2 )>8
  <b'-\tweak Slur.extra-offset #'(0 . -0.4) \=1 _( f''-\tweak Slur.extra-offset #'(0 . 0.6) \=2 ^(>16 <c''\=1 ) e'' \=2 )>16
  <b'-\tweak Slur.extra-offset #'(0 . -0.4) \=1 _( f''-\tweak Slur.extra-offset #'(0 . 0.6) \=2 ^(>16 <c''\=1 ) e'' \=2 )>8
}

\score {
  \stuff
}
%%%  SNIPPET BEGINS

Fortunately, this could relatively easily be function-ized… And likely, the offset could be replaced with something automagic (instead of trial-and-error). So maybe it’s a winner after all?

Hope this helps!
Kieren.
Hm, is this \=1 thing a new feature in the development version? I can’t get it to work on 2.18.2.

I’m guessing that you’re adding slurs to the individual notes of a chord (and the \=1, \=2 is probably so that you can distinguish which rparen closes which slur), and then you have two objects that can be tweaked individually. Which would be a lot less hacky :)

One difference to my horrible hack (I think) is that in this case you’re shifting a slur that was aligned to a beam, not to the note heads, so I assume the slur will not follow the slight upwards slope from the b to the c. (You could probably emulate that with some more tweaks or \shape.)

Cheers,
Lucas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]