lilypond-user
[Top][All Lists]
Advanced

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

articulate with grace notes and contexts fails barline check


From: Knute Snortum
Subject: articulate with grace notes and contexts fails barline check
Date: Sat, 21 Jul 2018 09:31:03 -0700

I think this is a bug, but I wanted to run it past the users' group first.

The heart of the problem is that the function articulate is not producing the correct MIDI output with grace notes in certain situations.  The symptom is that a bar check fails.

Below is a MWE.  I know it doesn't look very minimal, but it's about as small as I could get and still produce the problem.

%%%Start
%{
  Problems with the articulate function with grace notes, barchecks and
  explicit contexts.  On line 19, the barcheck will fail.

  Comment out any one of the lines with "this line" at the end and the
  problem disappears.
%}

\version "2.19.82"
\language "english"
\include "articulate.ly" % this line

rightHand = \relative {
  <<
    \context Voice = "1" { \voiceOne s4 ds''2.( }
    \context Voice = "2" { \voiceTwo s4 e,2. } % this line
  >> |
  \context Voice = "1" { \voiceOne \grace { ds'8) } } % this line
    \oneVoice ds4 e8. ds16 cs4 ds4 | % <-- fails here
}

% this is just for diagnostics 
\score {
  \new Staff \rightHand 
}

\score {
  \articulate { % this line and its closing brace
    \new Staff \rightHand
  }
  \midi {
  }
}
%%%End

Here is more context if it helps:


---
Knute Snortum
(via Gmail)

reply via email to

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