bug-lilypond
[Top][All Lists]
Advanced

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

Truncation in tuplets when generating MIDI


From: darius
Subject: Truncation in tuplets when generating MIDI
Date: Sat, 1 Jan 2005 00:03:32 +0100
User-agent: Internet Messaging Program (IMP) 3.2

Using 2.2.2 under Cygwin, it seems (from a larger example)
that tuplets produce rounding errors that accumulate when 
generating MIDI:

In something such as:

<<
  {
    \times 2/9 {c'8 c c c c c c c c} 
    \times 2/9 {c'8 c c c c c c c c} 
    \times 2/9 {c'8 c c c c c c c c} 
  }
  \\
  {
    a4 a4 a4
  }
>>

the second and third a4 is not in sync with the
beginning of the corresponding tuplet. 

There is a fairly simple way of avoiding this:

<<
  {
    <<
      \times 2/9 {c'8 c c c c c c c c} 
      \\
      s4
    >>
    <<
    \times 2/9 {c'8 c c c c c c c c} 
      \\
      s4
    >>
    <<
    \times 2/9 {c'8 c c c c c c c c} 
      \\
      s4
    >>
  }
  \\
  {
    a4 a4 a4
  }
>>

but I guess this should still be counted as a -minor- bug.

Interestingly enough, I have never had this problem with triplets, 
it appeared when I started 2/9 or 2/5...










reply via email to

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