On Tue, Oct 22, 2013 at 09:56:12AM +0200, Johan Vromans wrote:
> 
> I tried the following approach:
> 
>   qeight = \chordmode {
>     \override ChordName #'stencil = ##f
>     q8 q q q q q q
>     \revert ChordName #'stencil
>   }
>   ...etc...
> 
>   harmonies = \new ChordNames \chordmode {
>     \set chordChanges = ##f
>     ees8 \qeight             |
>     ees8 \qfour  bes8 \qfour |
>     ees8 \qsix   bes8 \qtwo  |
>     ees8 \qeight             |
>   } % harmoniesC

That seems reasonable, and I am puzzled that it didn't work.  It doesn't
work here under 2.17.26, either.

But the attached example does work in 2.17.26.  Curious.

Jim

\version "2.16.0"

melody = \new Staff \relative c' {
  \repeat unfold 16 ees8
  \bar "|."
}

chordsA = \chordmode {
    \repeat unfold 2 {
        ees8:7
        q q q q q 
        bes8:7
        q
    }
} % chordsA

chordsB = \chordmode {
    \repeat unfold 2 {
        ees8:7
        \override ChordName #'stencil = ##f
        q q q q q 
        \revert ChordName #'stencil
        bes8:7
        \override ChordName #'stencil = ##f
        q
        \revert ChordName #'stencil
    }
} % chordsB

\markup "Stretched spacing due to repeated, unsuppressed chords"
\score {
  <<
    \new ChordNames \chordmode {
      \chordsA
    }
    \melody
  >>
  \layout {}
} % score

\markup "Stretched spacing due to repeated chords, even with \\set chordChanges = ##t"
\score {
  <<
    \new ChordNames \chordmode {
      \set chordChanges = ##t
      \chordsA
    } % ChordNames
    \melody
  >>
  \layout {}
} % score

\markup "Stretched spacing eliminated by de-activating stencil"
\score {
  <<
    \new ChordNames \chordmode {
      \chordsB
    } % ChordNames
    \melody
  >>
  \layout {}
} % score

<<attachment: t2.png>>

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to