Knute Snortum <ksnor...@gmail.com> writes:

> I have another problem with voices and ties.  basically, I have octaves
> moving and an inner voice staying still.  I'd like the upper notes of the
> octaves to be tieUp and the lower notes to be tieDown.  But I can find no
> way to act on the lower and upper note independently of each other and
> still share a stem.

Actually, the tricky part here is _not_ using a "whole-chord" tie event
but rather _individual_ "in-chord" tie events.  The way you structure
your input (namely writing parallel music rather than true chords),
doing that is somewhat irksome.

The next problem is that \tieUp and \tieDown are overrides and apply to
everything in a Voice, and the Stem_engraver is by default at Voice
level.  Fortunately, there is \single for converting an override into a
tweak.

So we get

\version "2.18.2"

\language "english"

global = {
  \key gs \minor
  \time 6/8
  \clef treble
}

\new Staff {
  <<
    \new Voice {
      \relative c'' {
        \global
        \voiceOne
        % | <a' a'>4. ~ ( q8 <gs gs'>8 <fs fs'> )
        % \once \override Tie.rotation = #'(180 0 0)
        <<
          { <a-\single\tieDown ~>4. a8 gs fs }
          { <a'-\single\tieUp ~>4. a8 gs fs }
        >>
      }
    }
    \new Voice {
      \relative c'' {
        \global
        \voiceTwo
        \override NoteColumn.force-hshift = #1.4
        <ds fs>2.
      }
    }
  >>
}

-- 
David Kastrup
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to