lilypond-user
[Top][All Lists]
Advanced

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

RE: dissonant chords


From: Nick Payne
Subject: RE: dissonant chords
Date: Sat, 29 Nov 2008 17:40:08 +1100

I had a play around with the code from the snippets repository. Both that
and Jon's change to have both stems sloping fail to cope with the example
given in the original message of <c! cis d>. Depending on the order in which
the notes in the chord are given, one either gets a collision of the natural
or accidental with a notehead, or the natural and accidental overlay each
other. With a bit more tweaking that can be avoided, though with the wrong
order of notes the natural and sharp symbols still collide:

%=================================================================
\version "2.11.64"

fixA = {
        \once \override Stem #'length = #9
}
fixB = {
        \once \override NoteHead #'extra-offset = #'(2.7 . 0)
        \once \override Stem #'rotation = #'(45 0 0)
        \once \override Stem #'extra-offset = #'(0.2 . -0.6)
        \once \override Stem #'flag-style = #'no-flag
        \once \override Stem #'length = #9.4
        \once \override Accidental #'extra-offset = #'(4.3 . 0)
}

\relative c''
{
        << { \fixA <d c!>2 } \\ { \voiceThree \fixB cis } >> s
        << { \fixA <d cis> } \\ { \voiceThree \fixB c! } >> s
        << { \fixA <c! cis> } \\ { \voiceThree \fixB d } >> s
}
%=================================================================

One other thing I note - see 2nd png, is that <c cis> gets engraved with
only one of the two notes touching the stem. Is it possible to vary the
position of an individual notehead in a chord?

Nick

> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Jonathan Kulp
> Sent: Friday, 28 November 2008 04:40
> To: Mats Bengtsson
> Cc: lilypond-user mailinglist
> Subject: Re: dissonant chords
> 
> Mats Bengtsson wrote:
> > See http://lsr.dsi.unimi.it/LSR/Item?id=505 for a solution.
> >
> >   /Mats
> >
> 
> Thanks for this direction, Mats.  I tweaked it a bit to look more like
> the ones Samuel Barber uses but haven't had time to figure out how to
> make the split stem converge on a single stem that is then able to
> attach to other notes with beams.  Here's the code and an image is
> attached.
> 
> Jon
> --
> Jonathan Kulp
> http://www.jonathankulp.com
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> 
> fixB = {
>    \once \override NoteHead #'extra-offset = #'(0.5 . 0)
>    \once \override Stem #'rotation = #'(25 0 0)
>    \once \override Stem #'extra-offset = #'(-0.2 . -0.2)
>    \once \override Stem #'flag-style = #'no-flag
>    \once \override Accidental #'extra-offset = #'(2.2 . 0) }
> 
> fixC = {
>    \once \override NoteHead #'extra-offset = #'(-0.5 . 0)
>    \once \override Stem #'rotation = #'(-25 0 0)
>    \once \override Stem #'extra-offset = #'(-0.2 . -0.2)
>    \once \override Stem #'flag-style = #'no-flag
>    \once \override Accidental #'extra-offset = #'(0.2 . 0) }
> 
> 
> \relative c' {
>    << { \fixC d!8 } \\ { \voiceThree \fixB dis } >> s }

Attachment: chord.png
Description: PNG image

Attachment: stemnottouching.png
Description: PNG image


reply via email to

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