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"
one = \relative 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)

one = \relative 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
>>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to