lilypond-user
[Top][All Lists]
Advanced

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

Re: new voice with cluster changes horizontal spacing


From: Thomas Morley
Subject: Re: new voice with cluster changes horizontal spacing
Date: Sat, 20 May 2017 00:25:09 +0200



2017-05-19 20:22 GMT+02:00 Klaus Blum <address@hidden>:
Hi everybody,

I want to have some clusters along with the notes in the same staff.
However, if the clusters are preceeded by a "\new Voice" command, the
horizontal spacing changes.
Does anybody know why this happens and how I can avoid it?
Removing the "\new Voice" command would help, but I need to create a
dedicated voice.

% -----------------------------------------
\new Staff {
  c'4 d' e' f' g' f' e' d'
  <<
    {c'4 d' e' f' g' f' e' d'}
    \new Voice
    \makeClusters {c'4 d' e' f' g' f' e' d'}
  >>
  c'4 d' e' f' g' f' e' d'
}
% -----------------------------------------

Thanks for any hint.
Klaus


with "\new Voice":
<http://lilypond.1069038.n5.nabble.com/file/n203189/with_new-voice.png>

without "\new Voice":
<http://lilypond.1069038.n5.nabble.com/file/n203189/without_new-voice.png

Tbh, I've no clue why this happens.

You could correct it with:

\new Staff {
  c'4 d' e' f' g' f' e' d'
  \newSpacingSection
  %% the value 1.68 was found by try and error
  \override Score.SpacingSpanner.spacing-increment = #1.68
  <<
    {c'4 d' e' f' g' f' e' d'}
    \new Voice {
    \makeClusters {c'4 d' e' f' g' f' e' d'}
    }
  >>
  \newSpacingSection
  \revert Score.SpacingSpanner.spacing-increment
  c'4 d' e' f' g' f' e' d'
}


HTH a bit,
  Harm


reply via email to

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