[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Problems adding voice with rests
From:       Peter Toye <lilypond () ptoye ! com>
Date:       2021-02-17 11:05:52
Message-ID: 1436096728.20210217110552 () ptoye ! com
[Download RAW message or body]

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).


> Andrew


> %====

> \version "2.23.0"

> {
> \clef bass
> \time 12/8
> <<
> {
> \stemDown
> e,2. _~
> \stemUp
> <e, _~ b, ^~>4. <e, b,>4 b,,8 |
> \stemDown
> e,,2. _~
> e,,2.
> }
> \new Voice
> {
> \shiftOff
> b,4.^\(^~ b,8 c e s2. |
> \stemDown
> \override Stem.length = #6
> e,2.\) _~ e,2.
> }
> \new Voice
> {
> s2. s2. |
> f4.\rest
> }
 >>>
> }

> %====

> 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


[Attachment #3 (text/html)]

<html><head><title>Re: Problems adding voice with rests</title>
<meta charset="utf-8" http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; \
IE=EDGE" /> </head>
<body>
<span style=" font-size: 10pt;">Thanks Andrew - a bit late as you say, and I've \
already adapted Christian's solution. But it's probably the best one.<br> <br>
<br>
Best regards,<br>
<br>
Peter<br>
mailto:lilypond@ptoye.com<br>
www.ptoye.com<br>
<br>
-------------------------<br>
Wednesday, February 17, 2021, 7:35:06 AM, you wrote:<br>
<br>
&gt; Chiming in somewhat late. Here is what I typically write. The sort of<br>
&gt; New Complexity music I engrave, I am forever setting stems up and down<br>
&gt; manually, so perhaps this is not a 'normal' or 'proper' style, but it<br>
&gt; works well and quick to do. The virtue of this setting is no messing<br>
&gt; around with hidden notes, which, although useful and essential, I see<br>
&gt; no need for here.<br>
<br>
&gt; There's always more than one way to do it! TAMTOWTDI! (apologies to Perl).<br>
<br>
<br>
&gt; Andrew<br>
<br>
<br>
&gt; %====<br>
<br>
&gt; \version "2.23.0"<br>
<br>
&gt; {<br>
&gt; &nbsp; \clef bass<br>
&gt; &nbsp; \time 12/8<br>
&gt; &nbsp; &lt;&lt;<br>
&gt; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; \stemDown<br>
&gt; &nbsp; &nbsp; &nbsp; e,2. _~<br>
&gt; &nbsp; &nbsp; &nbsp; \stemUp<br>
&gt; &nbsp; &nbsp; &nbsp; &lt;e, _~ b, ^~&gt;4. &lt;e, b,&gt;4 b,,8 |<br>
&gt; &nbsp; &nbsp; &nbsp; \stemDown<br>
&gt; &nbsp; &nbsp; &nbsp; e,,2. _~<br>
&gt; &nbsp; &nbsp; &nbsp; e,,2.<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; \new Voice<br>
&gt; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp;\shiftOff<br>
&gt; &nbsp; &nbsp; &nbsp; b,4.^\(^~ b,8 c e s2. |<br>
&gt; &nbsp; &nbsp; &nbsp; \stemDown<br>
&gt; &nbsp; &nbsp; &nbsp; \override Stem.length = #6<br>
&gt; &nbsp; &nbsp; &nbsp; e,2.\) _~ e,2.<br>
&gt; &nbsp; &nbsp; }<br>
&gt; &nbsp; &nbsp; \new Voice<br>
&gt; &nbsp; &nbsp; {<br>
&gt; &nbsp; &nbsp; &nbsp; s2. s2. |<br>
&gt; &nbsp; &nbsp; &nbsp; f4.\rest<br>
&gt; &nbsp; &nbsp; }<br>
&nbsp;&gt;&gt;&gt;<br>
&gt; }<br>
<br>
&gt; %====<br>
<br>
&gt; On Tue, 16 Feb 2021 at 02:28, Peter Toye &lt;lilypond@ptoye.com&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I'm trying to set this piece of slightly strange voice writing (see \
attachment).<br> &gt;&gt;<br>
&gt;&gt; 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.<br> &gt;&gt;<br>
&gt;&gt; The closest I've got is below, but this has two problems with the final \
beat:<br> &gt;&gt;<br>
&gt;&gt; 1 - The bass octave is shifted right.<br>
&gt;&gt; 2 - The rest and its dot are separated.<br>
&gt;&gt;<br>
&gt;&gt; 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.<br> \
&gt;&gt;<br> &gt;&gt; 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!<br> &gt;&gt;<br>
&gt;&gt; \version "2.19.83"<br>
&gt;&gt;<br>
&gt;&gt; \language "english"<br>
&gt;&gt;<br>
&gt;&gt; {<br>
&gt;&gt; &nbsp; \time 12/8<br>
&gt;&gt; &nbsp; \clef "bass"<br>
&gt;&gt; &nbsp; &lt;&lt;<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; \relative {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; b,4.~( 8 c e &nbsp;&lt;b~ e,&gt;4. &nbsp;4 b,8 |<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &lt;&lt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; \hideNotes e4.)<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; \new Voice {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \voiceOne<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \absolute f4.\rest<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &nbsp; \\<br>
&gt;&gt; &nbsp; &nbsp; \relative<br>
&gt;&gt; &nbsp; &nbsp; {<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; e,2.~ \hide Stem 4.~ 4 \revert Voice.Stem.transparent \
s8 |<br> &gt;&gt; &nbsp; &nbsp; &nbsp; &lt;e e,&gt;2. s2.<br>
&gt;&gt; &nbsp; &nbsp; }<br>
&gt;&gt; &nbsp; &gt;&gt;<br>
&gt;&gt; }<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Peter<br>
&gt;&gt; mailto:lilypond@ptoye.com<br>
&gt;&gt; www.ptoye.com<br>
</body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic