>     Han-Wen> hshift has no effect if there is no unshifted note (which
>     Han-Wen> is correct behaviour).  You should hshift the middle
>     Han-Wen> voice, not the bottom one.
> 
> hmmm...  i don't understand.  the bottom voice is the one that's
> causing a conflict; the note in that voice is the one i want to shift
> so that it's out of the way of the others.  are you saying that lily
> has decided for me that the conflict is another voice, so it's not
> going to do anything about the bass?
> 
> here's just measure nine by itself:
> 
Now that's handy.  I tried briefly yesterday,
but using 1.0 and 1.1 lilypond alongside eachother
is quite a pain  (perhaps we should make sure that
Lily *prepends* paths derived from LILYPONDPREFIX
to the seachpath.)

Anyway, here are two solutions (let's include this
in lily: voices.ly)

% you may want to define these
% shifton =     \property Voice.hshift = 1
% shiftoff =    \property Voice.hshift = 0


%{ 
  There are two solotions:

  two voices
    - melody+middlevoice
    - bass
  the bass is shifted

  three voices
    - melody
    - middlevoice
    - bass
  the middlevoice is shifted
%}


melody = \type Voice=one \notes \relative c'' {
  \stemup
  d4 cis e
}

middlevoice = \type Voice=one \notes \relative c'' {
  \stemup
  bes a a
}

bass = \type Voice=three \notes \relative c' {
  \stemdown
  \shifton
  g'2 g4
}


\score {
      \type Staff <
        \clef violin; \time 3/4;
        \melody
        \middlevoice
        \bass
      >
  \paper {}
}

melody = \type Voice=one \notes \relative c'' {
  \stemup
  d4 cis e
}

middlevoice = \type Voice=two \notes \relative c'' {
  \stemup
  \shifton
  bes a a
}

bass = \type Voice=three \notes \relative c' {
  \stemdown
  g'2 g4
}


\score {
      \type Staff <
        \clef violin; \time 3/4;
        \melody
        \middlevoice
        \bass
      >
  \paper {}
}

Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music
typesetter
http://www.xs4all.nl/~jantien/      | http://www.lilypond.org/

Reply via email to