lilypond-user
[Top][All Lists]
Advanced

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

Re: Problems adding voice with rests


From: Christian Masser
Subject: Re: Problems adding voice with rests
Date: Mon, 15 Feb 2021 16:56:15 +0100

Hi Peter!

It seems that the invisible e you add for the ending of the bow is drawn as a note facing the left side (you can unhide it) which explains the right-shift of the e2.
If you rearrange it to:
  <<
    \relative {
      b,4.~( 8 c e  <b~ e,>4.  4 b,8 |
      <e) e,>2. s2.
    }
    \\
    \relative
    {
      e,2.~ 4.~ 4 s8 |
      f'4.\rest
    }
  >>
this interestingly also seems to solve the other problem.

All the best
Christian

Am Mo., 15. Feb. 2021 um 16:28 Uhr schrieb Peter Toye <lilypond@ptoye.com>:
I'm trying to set this piece of slightly strange voice writing (see attachment).

It obviously needs three voices: one for the lower line (voice 2), one for the upper line (voice 1) and a third for the rest at the end.

The closest I've got is below, but this has two problems with the final beat:

1 - The bass octave is shifted right.
2 - The rest and its dot are separated.

Playing about with \shiftOff and changing or omitting \VoiceOne have no effect. Obviously I'm doing something stupid but can't work out what it is.

Incidentally, neither the Learning nor Notation manuals say how to cancel a \hide instruction. I'm a bit surprised to find that there isn't an \unhide command!

\version "2.19.83"

\language "english"

{
  \time 12/8
  \clef "bass"
  <<
   
    \relative {
      b,4.~( 8 c e  <b~ e,>4.  4 b,8 |
      <<
        \hideNotes e4.)
        \new Voice {
          \voiceOne
          \absolute f4.\rest
        }
      >>
    }
    \\
    \relative
    {
      e,2.~ \hide Stem 4.~ 4 \revert Voice.Stem.transparent s8 |
      <e e,>2. s2.
    }
  >>
}
 
Regards,

Peter
mailto:lilypond@ptoye.com
www.ptoye.com

reply via email to

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