Thanks Andrew - a bit late as you say, and I've already adapted Christian's solution. But it's probably the best one.
Best regards,
Peter
mailto:lilypond@ptoye.com
www.ptoye.com
-------------------------
Wednesday, February 17, 2021, 7:35:06 AM, you wrote:
> Chiming in somewhat late. Here is what I typically write. The sort of
> New Complexity music I engrave, I am forever setting stems up and down
> manually, so perhaps this is not a 'normal' or 'proper' style, but it
> works well and quick to do. The virtue of this setting is no messing
> around with hidden notes, which, although useful and essential, I see
> no need for here.
> There's always more than one way to do it! TAMTOWTDI! (apologies to Perl).
> On Tue, 16 Feb 2021 at 02:28, Peter Toye <lilypond@ptoye.com> wrote:
>>
>> 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