lilypond-user
[Top][All Lists]
Advanced

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

Re: Voices, ties and rests


From: James Harkins
Subject: Re: Voices, ties and rests
Date: Wed, 15 Jun 2011 21:15:29 +0800
User-agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

At Wed, 15 Jun 2011 14:00:13 +0100,
Phil Holmes wrote:
> Is there any reason why you've used the "right" voice for the e's in the 
> lower staff?  Would it not be simpler to just have these as chords in the 
> left hand voice, and let Lily handle the ties for you?  That way, you don't 
> need to set the voice for the upper staff at all, and the rests appear 
> centred.

That doesn't tie from the octave E's in the top staff (end of m1) over to the 
octave E's in the bottom staff (beginning of m2). This is specifically the (now 
nonexistent) tie that I'm asking about.

I had used the voice in the hopes that keeping the notes "officially" in the 
same staff would make it possible to have the ties. But that didn't work 
either, so you're right, simplifying and taking out the cruft is better, as 
below.

James


\version "2.12.3"

\include "english.ly"

\paper {
  #(set-paper-size "a4")
}

global = {
  \key d \major
  \numericTimeSignature
  \time 4/4
}

right = \relative c'' {
  \global
  \times 2/3 { <b, b'>8 ( <d d'>8 <e e'>8 ~ }

  % It's the last tie in this line that I want to see,
  % crossing to the lower staff.

  <e e'>4 ~ <e e'>8. <d d'>16 <e e'>4 ~ ) 
  
  r4 <b a' d>8 <b a' d> <b a' d>4 r8 <b a' d>8
  <b a' d>4 <b a' d> r2
}

left = \relative c'' {
  \global
  % Music follows here.
  d,1 ~ <d e e'>1 ~ <d e e'>1
}

\score {
  \new PianoStaff
  <<
    \new Staff = "right" { \right }
    \new Staff = "left" { \left }
  >>
  \layout {
    \context {
      \RemoveEmptyStaffContext
      % need to hide the left-hand staff when not used
      % may need to move this into staves later?
      \override VerticalAxisGroup #'remove-first = ##t
    }
  }
}


--
James Harkins /// dewdrop world
address@hidden
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman

blog: http://www.dewdrop-world.net/words
audio clips: http://www.dewdrop-world.net/audio
more audio: http://soundcloud.com/dewdrop_world/tracks



reply via email to

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