lilypond-user
[Top][All Lists]
Advanced

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

Re: Yet another voice and ties problem


From: David Kastrup
Subject: Re: Yet another voice and ties problem
Date: Mon, 28 Apr 2014 20:58:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Knute Snortum <address@hidden> 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

reply via email to

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