Am 31.03.2014 09:59, schrieb Rutger Hofman:
On 03/31/2014 05:54 AM, Nick Payne wrote:
On 31/03/14 10:56, Daniel Rosen wrote:
Consider the example below:
\version "2.19.3"
\new Staff <<
\new Voice \relative c'' { \voiceOne c4~ <c d, c> }
\new Voice \relative c' { \voiceTwo <c d>8 q
>>
How can I tie the lower voice's <c d> to the upper voice's <c d, c>?
You could use a third hidden voice:
\version "2.19.3"
transOn = {
\override NoteColumn.ignore-collision = ##t
\override NoteHead.no-ledgers = ##t
\hide NoteHead
\hide Stem
\hide Flag
\hide Beam
\hide Dots
\hide Accidental
\hide TupletBracket
\hide TupletNumber
}
transOff = {
\revert NoteColumn.ignore-collision
\revert NoteHead.no-ledgers
\revert NoteHead.transparent
\revert Stem.transparent
\revert Beam.transparent
\revert Flag.transparent
\revert Dots.transparent
\revert Accidental.transparent
\revert TupletBracket.transparent
\revert TupletNumber.transparent
}
\new Staff <<
\new Voice \relative c'' { \voiceOne c4~ <c d, c> }
\new Voice \relative c' { \voiceTwo <c d>8 q }
\new Voice \relative c' { \voiceThree \transOn s8 <c_~ d^~> q }
>>
I use \hideNotes \unHideNotes in this case. Why is \transOn \transOff
better?
\hideNotes only makes the notes transparent and doesn't remove the
stencils. This _may_ work without problems, but will lead to
accidentals, ties and slurs etc. trying to avoid the (invisible) notes,
beams and particularly flags.
See
http://lilypondblog.org/2013/07/voice-contexts-in-temporary-polyphonic-sections/
The introductory image shows quite well what happens (even when it is
not about cross-voice ties).
HTH
Urs
Rutger
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user