[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slur collision with polyphonic music

From: Mats Bengtsson
Subject: Re: Slur collision with polyphonic music
Date: Tue, 24 Apr 2007 14:46:05 +0200
User-agent: Thunderbird (X11/20070221)

The most reasonable solution would be to move the slurs to
begin at the tip of the stem instead of starting close to the note head
in these situations.

The intuitive approach to handle these situations would be to set
the avoid-slur property on stems and note heads, but clearly it doesn't
work here. Slurs already  avoid note heads and stems in their own voice,
but as your example shows, there is no collision avoidance between slurs
in one voice and note heads/stems in other voices.

In version 2.2 and earlier, we used to have a property called attachment, so you
for example could specify
\override Slur #'attachment = #(stem . stem)
to make the slur start at the end of the stem. Then, the slur implementation was
completely rewritten and the set of available properties was changed.
Your example illustrates that the attachment property might still be useful
(at least waiting for the ultimate collision avoidance algorithm to be implemented). Currently, what you can do is to manually set the absolute vertical position of the
end points of the slur, for example
\once \override Slur #'positions = #'(2.5 . 4.0) g,2( e')
but this is a very tedious job.


Zoltán Selyem wrote:
%% Though I have no idea where and how to place these slurs
%% according to classical typographical rules...

%% Slurs collide with polyphonic music
%% In the last measure the lower slur points to the wrong note

\version "2.11.21"
\paper{ ragged-right=##t }
\relative g' {
    g2( e') | c( g) | e'( e,) | e'2.( e,4) |
  \new Voice{ \voiceTwo
    c'2( g) | g( c) | g4 a b c | g( g g g') |

bug-lilypond mailing list

        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]