[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why does the following bar check fail for measure 3?
From: |
David Kastrup |
Subject: |
Re: Why does the following bar check fail for measure 3? |
Date: |
Fri, 19 Nov 2021 03:39:24 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Kevin Cole <dc.loco@gmail.com> writes:
> Hi,
>
> In the following example lyrics, what goes wrong at measure 3?
>
> Thanks!
>
> %%%%
> \version "2.20.0"
> \language "english"
>
> \header {
> title = "broken"
> tagline = ""
> }
>
> \layout {
> \autoBeamOff
> }
>
> global = {
> \key c \major
> \time 3/4
> }
>
> melody = {
> \relative {
> \global
> g'2 c8. a16 | % 1
> g4 e4 e8. d16 | % 2
> c2 r4 | % 3
> r4 r4 g'4 | % 4
> }
> }
>
> words = \lyricmode {
> This is ok | % 1
> And so is this | % 2
> ??? | % 3
> ok | % 4
> }
>
> \score {
> <<
> \new Staff { \melody }
> \addlyrics { \words }
> >>
> }
> %%%%
Don't use bar checks in material distributed by \addlyrics . Because
bar checks are distributed alongside, so when ??? is matched to c2 , the
subsequent | in the lyrics is placed at r4 rather than after it and thus
not at a measure boundary.
--
David Kastrup