lilypond-user
[Top][All Lists]
Advanced

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

Re: Glissando tweaks in chords


From: Ben
Subject: Re: Glissando tweaks in chords
Date: Thu, 6 Dec 2018 20:48:17 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2

On 12/6/2018 7:49 PM, Peter Crighton wrote:
Hello all,

I have the following (reduced) scenario where one voice has a chord with a glissando in it and I want to tweak both glissandos differently. Is it possible? The second (currently commented out) tweak is never applied even if I comment out the first tweak.

\version "2.19.82"
c'' {
  g2
  -\tweak Y-offset #0.25
  \glissando a
}
two = \relative c'' {
  \context Voice = "one" {
    c2
    % this tweak is never applied
    % -\tweak Y-offset #-0.25
    \glissando d
  }
}
\new Staff <<
  \new Voice = "one" \one
  \two
>>

Thanks,
Peter


Hi Peter,


If you just want to tweak the top line of the gliss, for example, you could try this maybe? Or did I misunderstand?

Does that help?

(see attached)

c'' {
  \override Voice.Glissando.extra-offset =
    #(lambda (grob)
       (if (= 1 (ly:grob-property grob 'glissando-index)) '(0.5 . 0.5)
'(0 . 0)))
  g2
  -
  \glissando a
}
two = \relative c'' {
  \context Voice = "one" {
    c2
    % this tweak is never applied
    % -\tweak Y-offset #-0.25
    \glissando d
  }
}
\new Staff <<
 
  \new Voice = "one" \one
  \two
>>

Attachment: tweak example.png
Description: PNG image


reply via email to

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