Re: rest placement in multi-voice piano staff

2015-03-27 Thread Flaming Hakama by Elaine

 Hi David,

  I was wondering if anyone had a clue as to how to get the eighth rest in
 voice three to be shown above the half note in voice four?

 Yes: use Lilypond’s automatic voicing:

 \new PianoStaff 
 \new Staff = upper 
 \new Voice = first { \voiceOne \pianoVoiceOne }
 \new Voice = second { \voiceTwo \pianoVoiceTwo }
 
 \new Staff = lower 
 \clef bass
 \new Voice = third { \voiceOne \pianoVoiceThree }
 \new Voice = fourth { \voiceTwo \pianoVoiceFour }
 
 

 This may also allow you to reduce or totally avoid the use of \stemUp and
 \stemDown (which are extremely rare in my scores, despite my heavy use of
 polyphony).

 Hope this helps!
 Kieren.



Yes, very much thanks.

I had intended to use the automatic voicing, but somehow got the syntax
wrong.
Nor did I realize that for voices 3 and 4, you use \voiceOne and \voiceTwo.

That explains why I had to add lots of \stemUp and \stemDown commands.
I was expecting everything to just work, and was bummed that I had to deal
with lots of cases manually.


David Elaine Alt
415 . 341 .4954   *Confusion is
highly underrated*
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: rest placement in multi-voice piano staff

2015-03-27 Thread Kieren MacMillan
Hi David,

 I had intended to use the automatic voicing, but somehow got the syntax 
 wrong.   
 Nor did I realize that for voices 3 and 4, you use \voiceOne and \voiceTwo.

That’s not exactly the way I would put it…

What you call “voices 3 and 4” are actually voices 1 and 2 **in the lower 
staff**. If you have three or four actual different (polyphonic) voices in a 
single staff, then you would use \voiceThree and \voiceFour. In other words, 
each Staff context can have its own \voiceOne, \voiceTwo, etc. [Voice] contexts.

 That explains why I had to add lots of \stemUp and \stemDown commands.

Yes. And with more complex scores, you’d have to add lots of other similar 
commands (e.g., \tieUp, \stemUp), all of which Lily handles automatically when 
you use the correct structure.

Best regards,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: rest placement in multi-voice piano staff

2015-03-25 Thread Kieren MacMillan
Hi all,

Just for the benefit of anyone reading this thread after the fact…

 you can specify a placement for the rest by indicating a note\rest. in this 
 case i used g8\rest

While that is technically true, we should be encouraging the proper use of the 
\voiceX commands, which (as I’ve shown) solve the OP’s problem, and introduce a 
host of other benefits.

Best regards,
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


rest placement in multi-voice piano staff

2015-03-24 Thread Flaming Hakama by Elaine
I was wondering if anyone had a clue as to how to get the eighth rest
in voice three to be shown above the half note in voice four?


\version 2.19.15
\include english.ly

pianoVoiceOne = \relative c' { fs b d2 f c' }
pianoVoiceTwo = \relative c' { s1 }
pianoVoiceThree = \relative c' { \stemDown r8 a fs [ d ] \stemUp b gs e'
gs4 }
pianoVoiceFour = \relative c, { \stemDown b2 e }

  
\new PianoStaff 
\new Staff = upper 
\new Voice = first  \pianoVoiceOne
\new Voice = second \pianoVoiceTwo

\new Staff = lower 
\clef bass
\new Voice = third \pianoVoiceThree
\new Voice = fourth \pianoVoiceFour


  
  \layout { }



Thanks,

David Elaine Alt
415 . 341 .4954   *Confusion is
highly underrated*
ela...@flaminghakama.com
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


RE: rest placement in multi-voice piano staff

2015-03-24 Thread Stephen MacNeil
you can specify a placement for the rest by indicating a note\rest. in this
case i used g8\rest


hope that helps


stephen



\include english.ly


pianoVoiceOne = \relative c' { fs b d2 f c' }

pianoVoiceTwo = \relative c' { s1 }

pianoVoiceThree = \relative c' { \stemDown g8\rest a fs [ d ] \stemUp b gs
e'

gs4 }

pianoVoiceFour = \relative c, { \stemDown b2 e }


 

\new PianoStaff 

\new Staff = upper 

\new Voice = first \pianoVoiceOne

\new Voice = second \pianoVoiceTwo



\new Staff = lower 

\clef bass

\new Voice = third \pianoVoiceThree

\new Voice = fourth \pianoVoiceFour







\layout { }
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: rest placement in multi-voice piano staff

2015-03-24 Thread Kieren MacMillan
Hi David,

 I was wondering if anyone had a clue as to how to get the eighth rest in 
 voice three to be shown above the half note in voice four?

Yes: use Lilypond’s automatic voicing:

\new PianoStaff 
\new Staff = upper 
\new Voice = first { \voiceOne \pianoVoiceOne }
\new Voice = second { \voiceTwo \pianoVoiceTwo }

\new Staff = lower 
\clef bass
\new Voice = third { \voiceOne \pianoVoiceThree }
\new Voice = fourth { \voiceTwo \pianoVoiceFour }



This may also allow you to reduce or totally avoid the use of \stemUp and 
\stemDown (which are extremely rare in my scores, despite my heavy use of 
polyphony).

Hope this helps!
Kieren.
___

Kieren MacMillan, composer
www:  http://www.kierenmacmillan.info
email:  i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Rest placement following use of Temporary Polyphonic Context is wrong

2014-04-02 Thread Nick Payne

On 02/04/14 16:22, Guy Stalnaker wrote:

\version 2.16.0
\language english
\header {
  title = Rest placement error?
  subtitle = After Temporary Polyphonic Context
  subsubtitle = Rests appear as if for upper voice
}
global = {
  \key c \major
  \time 3/4
}
sopranoVoice =  {
  \global
  \dynamicUp
  \partial 4 r4 |
  r2.^\markup {Rests where they are supposed to be} |
  r |
  r |
  r \bar ||
  g'4 \mp ^\markup {Calmly} a'8 a' b'4 |
  c''4. d''8 c''4 |
  b'8[ g'] g'[ b'] d''4 |
  e''8 c'' d''2 |
   \voiceOne { d''4 g''8[ fs''] e''( d'') |
   c''8 c'' d''4( e'') |
   f''4 a' c'' |
   d''2 c''4 |
   c''2. ~ |
   c''2. }
   \new Voice { \voiceTwo d''4 ^\markup { TPC starts here} b'8 a' g'4 |
a'8 a' b'4( c''8 b') |
a'4 f' a' |
b'2 c''4 |
c''2. ~ |
c''2. }  \voiceOne |
  r ^\markup {Error here - acts like there are two voices!} |
  r |
  r |
  r |
  r |
}
sopranoVoicePart = \new Staff \with {
  instrumentName = S.
  midiInstrument = clarinet
} { \sopranoVoice }
\score {
  
\sopranoVoicePart
  
  \layout { }
  \midi { }
} 


You need to use \oneVoice rather than \voiceOne at the end of the 
polyphonic section. That fixes the problem.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Rest placement following use of Temporary Polyphonic Context is wrong

2014-04-02 Thread Guy Stalnaker
Well, ain't that embarrassing! You see what you expect to see. /voiceOne vs. 
/oneVoice. Good grief!

Thanks to those who replied. 

On April 2, 2014 12:08:34 AM CDT, Urs Liska u...@openlilylib.org wrote:
Am 02.04.2014 07:22, schrieb Guy Stalnaker:
 I noticed this recently but did not have time to post to the list.
Now I
 do so here 'tis.

 I checked the docs and in the section on TPC

(http://www.lilypond.org/doc/v2.18/Documentation/notation/multiple-voices#single_002dstaff-polyphony)
 I see no note or warning that what I see is expected. What do I
see?
 If I set some measures with rests followed by some notes, followed by
 two voices set using the TPC syntax (  \voiceOne {} \new Voice {
 \voiceTwo }  \voiceOne ), following the conclusion of the TPC
section,
 subsequent rests are engraved as if two voices still exist, as if (I
 pray I'm using the correct terminology) the temporary context has
not
 been removed, i.e., it was not temporary and continues to influence
the
 engraving of the staff.

 Is there a purge or clean or clear or release command one
might
 use to fix this? In the past I've used manual rest placement to move
 them where they should be, but I should not need to do that. The rest
 placement remains incorrect whether I use \voiceTwo or \voiceFour for
 the \new Voice in the TPC.

You write \voiceOne after the closing  brackets. That makes LilyPond 
think you want to continue with an upper voice.
Write \oneVoice in the same place and you'll have what you (presumably)

want.

HTH
Urs


 Here's some test music that shows what I'm seeing.

 code
 \version 2.16.0
 \language english
 \header {
title = Rest placement error?
subtitle = After Temporary Polyphonic Context
subsubtitle = Rests appear as if for upper voice
 }
 global = {
\key c \major
\time 3/4
 }
 sopranoVoice =  {
\global
\dynamicUp
\partial 4 r4 |
r2.^\markup {Rests where they are supposed to be} |
r |
r |
r \bar ||
g'4 \mp ^\markup {Calmly} a'8 a' b'4 |
c''4. d''8 c''4 |
b'8[ g'] g'[ b'] d''4 |
e''8 c'' d''2 |
 \voiceOne { d''4 g''8[ fs''] e''( d'') |
 c''8 c'' d''4( e'') |
 f''4 a' c'' |
 d''2 c''4 |
 c''2. ~ |
 c''2. }
 \new Voice { \voiceTwo d''4 ^\markup { TPC starts here} b'8 a'
g'4 |
  a'8 a' b'4( c''8 b') |
  a'4 f' a' |
  b'2 c''4 |
  c''2. ~ |
  c''2. }  \voiceOne |
r ^\markup {Error here - acts like there are two voices!} |
r |
r |
r |
r |
 }
 sopranoVoicePart = \new Staff \with {
instrumentName = S.
midiInstrument = clarinet
 } { \sopranoVoice }
 \score {

  \sopranoVoicePart

\layout { }
\midi { }
 }
 /code


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Rest placement following use of Temporary Polyphonic Context is wrong

2014-04-01 Thread Guy Stalnaker
I noticed this recently but did not have time to post to the list. Now I 
do so here 'tis.


I checked the docs and in the section on TPC 
(http://www.lilypond.org/doc/v2.18/Documentation/notation/multiple-voices#single_002dstaff-polyphony) 
I see no note or warning that what I see is expected. What do I see? 
If I set some measures with rests followed by some notes, followed by 
two voices set using the TPC syntax (  \voiceOne {} \new Voice { 
\voiceTwo }  \voiceOne ), following the conclusion of the TPC section, 
subsequent rests are engraved as if two voices still exist, as if (I 
pray I'm using the correct terminology) the temporary context has not 
been removed, i.e., it was not temporary and continues to influence the 
engraving of the staff.


Is there a purge or clean or clear or release command one might 
use to fix this? In the past I've used manual rest placement to move 
them where they should be, but I should not need to do that. The rest 
placement remains incorrect whether I use \voiceTwo or \voiceFour for 
the \new Voice in the TPC.


Here's some test music that shows what I'm seeing.

code
\version 2.16.0
\language english
\header {
  title = Rest placement error?
  subtitle = After Temporary Polyphonic Context
  subsubtitle = Rests appear as if for upper voice
}
global = {
  \key c \major
  \time 3/4
}
sopranoVoice =  {
  \global
  \dynamicUp
  \partial 4 r4 |
  r2.^\markup {Rests where they are supposed to be} |
  r |
  r |
  r \bar ||
  g'4 \mp ^\markup {Calmly} a'8 a' b'4 |
  c''4. d''8 c''4 |
  b'8[ g'] g'[ b'] d''4 |
  e''8 c'' d''2 |
   \voiceOne { d''4 g''8[ fs''] e''( d'') |
   c''8 c'' d''4( e'') |
   f''4 a' c'' |
   d''2 c''4 |
   c''2. ~ |
   c''2. }
   \new Voice { \voiceTwo d''4 ^\markup { TPC starts here} b'8 a' g'4 |
a'8 a' b'4( c''8 b') |
a'4 f' a' |
b'2 c''4 |
c''2. ~ |
c''2. }  \voiceOne |
  r ^\markup {Error here - acts like there are two voices!} |
  r |
  r |
  r |
  r |
}
sopranoVoicePart = \new Staff \with {
  instrumentName = S.
  midiInstrument = clarinet
} { \sopranoVoice }
\score {
  
\sopranoVoicePart
  
  \layout { }
  \midi { }
}
/code

--
There is only love, and then oblivion. Love is all we have
to set against hatred. (paraphrased) Ian McEwan

Guy Stalnaker
jimmyg...@gmail.com

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Odd rest placement after temp polyphonic context

2013-07-01 Thread Guy Stalnaker

All,

I noticed something odd in a recent arrangement I helped a friend with. 
In two places the voices split into divisi (once in the upper two parts, 
m.3 in the example, and once in the lower two parts a few measures after 
the first time. m. 12-13 in the example). We used the temp polyphonic 
context (TPC) to set notes/lyrics. But immediately after the TPC rests 
are no longer set correctly, being too high on the staff. In all four 
instances \voiceOne *is* indicated following the TPC and \voiceOne 
\voiceTwo are used in the TPC.


It looks like the rests are being set for an upper voice as if two 
voices were still being set on the same staff. See the attached .ly file 
for a snippet of what I mean. I had to use the commented /override to 
get the rests back to the staff-centered position.


Should Lilypond do this?

Regards,

Guy S.

--
There is only love, and then oblivion. Love is all we have
to set against hatred. (paraphrased) Ian McEwan

Guy Stalnaker I2@DOIT jstal...@wisc.edu
1210 West Dayton Street Room 3209 CSS Madison WI 53706
work 608.263.8035 fax 608.265.6681
\version 2.16.2
\language english

\header {
  title = Post-Divisi Rest placement error
}

global = {
  \key bf \major
  \time 3/4
  \tempo 4 = 110
  \clef treble
}

sopranoOne = { 
  \global 
  ef''  d''4 c'' |
  bf'2 r4 \bar || \time 4/4 
   { \voiceOne d''1 _~ | d''1 }
 \new Voice = sopOneDiv { \voiceTwo r1 | a''1 }
   \voiceOne 
  \bar || \key g \major \tempo  4 = 95 
  %\override Rest #'staff-position = #0
  g''2   d''4 b' |
  c'' b' a'  r4 |
  g'2  b'4 d'' |
  g'' e'' d''  c''  |
  d''2 e''4 g''  |
  fs''2. r4 |
  e''4 d'' c'' b' |
  a' r4 r2 |
  r2 a''4 r4 |
  g''2  d''4 b' |
  c'' b' a'  r4 |
  
}
sopranoTwo = {
  \global
  c''8 r8 bf'8 r8 a'8 r8 |
  f'4 f' r4 | \time 4/4 
   
{ \voiceOne \stemDown r2 a'2 _~ | a'1 }
\new Voice = sopTwoDiv { \voiceTwo \stemUp r4 c''2. ^~ | c''1 }
   \voiceOne | \key g \major \stemNeutral 
  %\override Rest #'staff-position = #0 
  r8 b'8  as'4 b' d'' |
  a'8 b' c''4 r ef'' |
  d''4 d'' d'' b' |
  c''8 b' a'4 r d' |
  g' r8 g'8 g' a' b' ( c'' ) |
  d''2. d''4 |
  c''4 b' a' g' |
  a'8 b' c'' d'' ef''2 ~ |
  ef''2. r4 |
  b' b' b' d'' |
  a' b' c'' r |
  
}

altoOne = {
  \global
  g'8 r8 f'8 r8 ef'8 r8 |
  d'4 d' r4 | \time 4/4 
  r2 r4 fs'4 ~|
  fs'1 | \key g \major 
  d'2  e'4 e' |
  e' f' fs' r |
  g' fs' e' e' |
  ef' g' fs' a' |
  b' b' c'' a'  |
  b'2. r4 |
  g' fs' e' e'  |
  fs' r r 
   { \voiceOne \stemDown s4 | a'2. }
 \new Voice = altoOneDiv { \voiceTwo \stemUp c''4 ^~ | c''2  } 
   \voiceOne
  %\override Rest #'staff-position = #0
  r4 |
  d'2 e'4 e' |
  e' f' fs' r4 |
  
}

altoTwo =  {
  \global
  ef'8 r8 f'8 r8 f8 r8 |
  bf4 bf r | \time 4/4 
  r1 |
  d'1 | \key g \major 
  g4 r gs r |
  a r d' r |
  g r gs r |
  a r d' f' |
  e' g' f' f' |
  e'2. r4 |
  a4 b c' cs'  |
  d' r4 r2 |
   { \voiceOne \stemDown r2 d'4 }
 \new Voice = altoTwoDiv { \voiceTwo \stemUp r4 fs'2 }
   \voiceOne
  %\override Rest #'staff-position = #0
  r4 |
  g r gs r |
  a r d' r |
  
}

sopranoIStaff = {
  \new Staff { \sopranoOne }
}
sopranoIIStaff = {
  \new Staff { \sopranoTwo }
}
altoIStaff = {
  \new Staff { \altoOne }
}
altoIIStaff = {
  \new Staff { \altoTwo }
}

\score {
  \new ChoirStaff 
\sopranoIStaff
\sopranoIIStaff
\altoIStaff
\altoIIStaff
  
  \layout { }
  \midi { }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Odd rest placement after temp polyphonic context

2013-07-01 Thread Kieren MacMillan
Hi Guy,

 In all four instances \voiceOne *is* indicated following the TPC

Don't you want to use \oneVoice instead?

Hope this helps!
Kieren.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Odd rest placement after temp polyphonic context

2013-07-01 Thread Guy Stalnaker

Doh!!

I have looked at that more times than I can count and not once, even 
going back to the docs, did I catch \oneVoice and not \voiceOne!


Helps to have different eyes look at it. Thanks.

And that does indeed 'fix' it. At the least my thinking about LP setting 
the rests as if two voices were in effect is exactly right.


Best regards.

On 07/01/2013 04:48 PM, Kieren MacMillan wrote:

Hi Guy,


In all four instances \voiceOne *is* indicated following the TPC


Don't you want to use \oneVoice instead?

Hope this helps!
Kieren.



--
There is only love, and then oblivion. Love is all we have
to set against hatred. (paraphrased) Ian McEwan

Guy Stalnaker I2@DOIT jstal...@wisc.edu
1210 West Dayton Street Room 3209 CSS Madison WI 53706
work 608.263.8035 fax 608.265.6681

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Odd rest placement after temp polyphonic context

2013-07-01 Thread Eluze

should you use \oneVoice instead!?

Eluze



Am 01.07.2013 23:44, schrieb Guy Stalnaker:

All,

I noticed something odd in a recent arrangement I helped a friend 
with. In two places the voices split into divisi (once in the upper 
two parts, m.3 in the example, and once in the lower two parts a few 
measures after the first time. m. 12-13 in the example). We used the 
temp polyphonic context (TPC) to set notes/lyrics. But immediately 
after the TPC rests are no longer set correctly, being too high on the 
staff. In all four instances \voiceOne *is* indicated following the 
TPC and \voiceOne \voiceTwo are used in the TPC.


It looks like the rests are being set for an upper voice as if two 
voices were still being set on the same staff. See the attached .ly 
file for a snippet of what I mean. I had to use the commented 
/override to get the rests back to the staff-centered position. 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with rest placement on polyphonic measure

2011-05-21 Thread -Eluze


-Eluze wrote:
 
 
 cayblood wrote:
 
 Thanks! Any idea how to keep the followVoice working? When I do that,
 there is no longer a line between the r8 and the d8 in the lower staff.
 
 
 i just wanted to point you to the idea - the following snippet should do
 the job:
   
 \context Voice = up1 { d2 s }
 \context Voice = up2 { s2 r4 r8 d16 e }
 \context Voice = 1 {
   \set followVoice = ##t
\voiceFour  r8
\stemUp  
   \change Staff = lower
   d,^\( a' d,
   \change Staff = upper
   d' a a'4\)
 }

 
for only one occurrence of a rest position correction it might be easier to
simply position the rest with the \rest function:

{ 
  \set followVoice = ##t
  g,8 \rest
  \change Staff = lower
  d^\( a' d,
  \change Staff = upper
  d' a a'4\)
}

Eluze
-- 
View this message in context: 
http://old.nabble.com/Problem-with-rest-placement-on-polyphonic-measure-tp31659733p31669383.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problem with rest placement on polyphonic measure

2011-05-20 Thread -Eluze


cayblood wrote:
 
 I'm having trouble getting this polyphonic section to display the 8th rest
 below the D half-note. It keeps going above it. To see what I'm talking
 about, check out this output on the top of page 3, measure 25:
 
 
it is just the problem of implicit voices' assignments and what attributes
they get - if you explicitely define the attributes of that voice you can
get it:

  \context Voice = new voice { \voiceFour r8 }% instead of just 
r8   line 93

hope this helps
Eluze
-- 
View this message in context: 
http://old.nabble.com/Problem-with-rest-placement-on-polyphonic-measure-tp31659733p31662197.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user



Re: Problem with rest placement on polyphonic measure

2011-05-20 Thread -Eluze


cayblood wrote:
 
 
 -Eluze wrote:
 
 it is just the problem of implicit voices' assignments and what
 attributes they get - if you explicitely define the attributes of that
 voice you can get it:
 
   \context Voice = new voice { \voiceFour r8 }% instead of just
  
 r8   line 93
 
 
 Thanks! Any idea how to keep the followVoice working? When I do that,
 there is no longer a line between the r8 and the d8 in the lower staff.
 

i just wanted to point you to the idea - the following snippet should do the
job:
  
\context Voice = up1 { d2 s }
\context Voice = up2 { s2 r4 r8 d16 e }
\context Voice = 1 {
  \set followVoice = ##t
   \voiceFour  r8
   \stemUp  
  \change Staff = lower
  d,^\( a' d,
  \change Staff = upper
  d' a a'4\)
}
   


-- 
View this message in context: 
http://old.nabble.com/Problem-with-rest-placement-on-polyphonic-measure-tp31659733p31665054.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-03 Thread Geoff Horton
A solution (or at least a workaround): Use \oneVoice before the rest
and then \voice[whatever] after it. I don't like it because it makes
the input file busier, but I suspect that a real fix would involve
fairly extensive recoding.

http://www.geoffhorton.com/lilypond.html#placerests

Geoff


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-03 Thread Mats Bengtsson
This bug was reported on bug-lilypond some weeks ago and according to 
the ChangeLog file, it was fixed 2006-03-16, i.e. before version 2.8. 
However, it seems that the fix didn't solve the problem.


  /Mats

Quoting Geoff Horton [EMAIL PROTECTED]:


Try these simple examples on your system.  If they work, then try to
figure out exactly what the difference is between these examples and
your situation.


It's the \voiceOne etc. that does it.

This does not work:

melody = \relative c'' {
 b2\rest
}


alto = \relative c' {
 s2
}

\score {
\context Staff = upper 
 \context Voice =
sopranos {  \voiceOne \melody  }
 \context Voice =
altos {  \voiceTwo \alto  }
   
 \layout {
   ragged-right = ##t
 }
}

===

But strip out the \voiceOne and \voiceTwo and it works fine. Changing
\voiceTwo to \voiceThree made no difference (I figured it was worth a
shot).

Geoff


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user







___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Manual rest placement doesn't seem to work

2006-04-02 Thread Geoff Horton
I've been trying to use the manual placement mechanism and it doesn't
seem to work. Before I file it as a bug, though, I want to be sure I'm
doing it right. Code follows, output attached. Basically, I want the
rests of the center line of each staff.

world = {
  \key d \major
  \time 3/2
}

melody = \relative c'' {
  \world
  b2\rest fs2 fs |
}


alto = \relative c' {
  \world
  s2 d2 d |
}

tenor = \relative c {
  \world
  d2\rest a' a |
 }

bass = \relative c, {
  \world
  d2 d' d |
}

\score {
  \context ChoirStaff 
\context Staff = upper 
  \context Voice =
 sopranos { \voiceOne  \melody  }
  \context Voice =
 altos { \voiceTwo  \alto  }

\context Staff = lower 
  \clef bass
  \context Voice =
tenors { \voiceOne  \tenor  }
  \context Voice =
  basses { \voiceTwo  \bass  }

  
  \layout {
ragged-right = ##t
  }
}

==

Am I doing something wrong, or is this really broken?

Geoff


manualrests.png
Description: PNG image
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-02 Thread Graham Percival


On 2-Apr-06, at 4:40 PM, Geoff Horton wrote:


I've been trying to use the manual placement mechanism and it doesn't
seem to work. Before I file it as a bug, though, I want to be sure I'm
doing it right. Code follows, output attached. Basically, I want the
rests of the center line of each staff.


Please remember to check a minimal example:
\version 2.9.1
{
  c2\rest a'2
}
works perfectly.


There may be some issue with manual rests within polyphony... but it 
looks fine here:

\version 2.9.1
{
   {
  f''2\rest a'2
  f''2\rest a'2
  } \\ {
  d'2\rest f'2
  s2  f'2
  } 
}


Try these simple examples on your system.  If they work, then try to 
figure out exactly what the difference is between these examples and 
your situation.


Cheers,
- Graham



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-02 Thread Geoff Horton
 Try these simple examples on your system.  If they work, then try to
 figure out exactly what the difference is between these examples and
 your situation.

It's the \voiceOne etc. that does it.

This does not work:

melody = \relative c'' {
  b2\rest
}


alto = \relative c' {
  s2
}

\score {
 \context Staff = upper 
  \context Voice =
 sopranos {  \voiceOne \melody  }
  \context Voice =
 altos {  \voiceTwo \alto  }

  \layout {
ragged-right = ##t
  }
}

===

But strip out the \voiceOne and \voiceTwo and it works fine. Changing
\voiceTwo to \voiceThree made no difference (I figured it was worth a
shot).

Geoff


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-02 Thread Geoff Horton
Combining the voices with \partcombine also produces a misplaced rest.

Geoff


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Manual rest placement doesn't seem to work

2006-04-02 Thread Geoff Horton
 Combining the voices with \partcombine also produces a misplaced rest.

Sigh. No, it doesn't. Sorry about that. The other example really is
broken, though.

Geoff


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Rest Placement

2006-01-07 Thread Tim Sawyer
I'm doing this in lilypond-book, version 2.6.4.  The top line rests (the up 
ones) appear in ledger lines above the stage.  How do I stop it moving them 
so far up?

ta,

Tim.

\begin[staffsize=20]{lilypond}
\version 2.6.0
up = \drummode { sn4 sn4 r2 sn4 sn4 r2 sn4 sn4 r2 sn4 r4 r2 \bar |.}
down = \drummode { r2 bd4 bd4 r2 bd4 bd4 r2 bd4 bd4 r4 }
\score
{
\new DrumStaff

  \set Staff.instrument = 1.
  \set Staff.minimumVerticalExtent = #'(-6 . 6)
  \clef percussion
  \new DrumVoice  { \voiceOne \up }
  \new DrumVoice  { \voiceTwo \down }
  \bar |.

}
\end{lilypond}


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user