[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Clashing noteheads after switching a voice between staffs (v2.4.3)
From: |
Mats Bengtsson |
Subject: |
Re: Clashing noteheads after switching a voice between staffs (v2.4.3) |
Date: |
Wed, 23 Mar 2005 14:13:31 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
I first tried the following
ToUpper = { \change Staff=upper \voiceFour }
ToLower = { \change Staff=lower \voiceOne }
which moves the notes of the tenor voice to the side to
avoid collisions. However, I think the following works even
better since it moves the notes to the right instead of to the left.
ToUpper = { \change Staff=upper \voiceTwo \override NoteColumn
#'horizontal-shift = #-1 }
ToLower = { \change Staff=lower \voiceOne \revert NoteColumn
#'horizontal-shift }
Also, I think this is better than your workaround since it
should be clear that it's a third voice that has entered the
upper stave, not just that the alto part has a divisi.
/Mats
address@hidden wrote:
In four part music, if a voice is crossed between staffs then the
collision handling for note column and noteheads tends to let go.
The attached example demonstrates what happens in version 2.4.3 (running
on win32 under cygwin).
It is possible to workaround the problem by putting a skip in the tenor
voice, and adding the extra notes as a chord in the alto voice, but this
is undesirable for all sorts of reason: not only is the staff follower
line lost, the notes are still really in the tenor voice! But for
engraving purposes, the desired behaviour for spacing would be such a
combination with the alto voice.
Any ideas?
Dunstan Vavasour
address@hidden
-------------------
\version "2.4.3"
ToUpper = { \change Staff=upper \stemDown }
ToLower = { \change Staff=lower \stemUp }
global = { \time 3/4 \key g \major }
Soprano = \relative c'{ g'4 fis e | d2 b'4 | a( b) a | g2.}
Alto = \relative c'{ e4 d c | d2 g4 | g2 fis4 | g2.}
Tenor = \relative c'{ g4 g c | b( c) \ToUpper d | e2 \ToLower c4 | b2.}
Bass = \relative c { c4 c e | g2 b,4 | c2 d4 | g2. }
\score {
\context GrandStaff <<
\set GrandStaff.followVoice=##t
\context Staff = upper <<
\set Staff.midiInstrument = "church organ"
\context Voice = sopranos { \voiceOne << \global \Soprano >> }
\context Voice = altos { \voiceTwo << \global \Alto >> }
>>
\context Staff = lower <<
\clef bass
\set Staff.midiInstrument = "church organ"
\context Voice = tenors { \voiceOne << \global \Tenor >> }
\context Voice = basses { \voiceTwo << \global \Bass >> }
>>
\layout {
%%%%raggedright = ##t
%%%%raggedlast=##t
\context { \GrandStaff \accepts "Lyrics"}
}
\midi {
\tempo 4=100
}
}
COMPUTACENTER (UK) LTD
The contents of this e-mail are intended for the named addressee only.
It contains information which may be confidential and which may also be privileged.
Unless you are the named addressee (or authorised to receive for the addressee)
you may not copy or use it, or disclose it to anyone else.
If you received it in error please notify us immediately and then destroy it.
Computacenter information is available from http://www.computacenter.com
This footnote also confirms that this email message has been swept for the
presence of computer viruses.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * *
_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond
--
=============================================
Mats Bengtsson
Signal Processing
Signals, Sensors and Systems
Royal Institute of Technology
SE-100 44 STOCKHOLM
Sweden
Phone: (+46) 8 790 8463
Fax: (+46) 8 790 7260
Email: address@hidden
WWW: http://www.s3.kth.se/~mabe
=============================================