[JW Lua] Bug: Rests under beams with CalcBeamStartEntry() and CalcBeamedGroupEnd()

Thomas Weber thomas.weber at notengrafik.com
Sat Jul 30 08:58:29 CEST 2016


In addition, CalcUnbeamedNote() is not reliable.  So, here are extended results from the test cases:


N N N N
N N N R
N N R R
R R N N
N R R R
  No flaws.

N N R N
  N1 is returned when called on N1 or R2. nil is returned when called on R3 or N4.
  CalcBeamedGroupEnd() wrongly returns false when called on N4.
  CalcUnbeamedNote() wrongly returns true when called on R3.

N R N N
  nil is returned when called on N1 or R2. N3 is returned when called on N3 or N4.
  CalcUnbeamedNote() wrongly returns true when called on N1 and R2.

R N N N
  nil is returned when called on R1. N2 is returned when called on N2, N3 or N4
  CalcUnbeamedNote() wrongly returns true when called on R1.

N R N R
  nil is returned when called on R1 or N2. N3 is returned when called on N3 or R4.
  CalcUnbeamedNote() wrongly returns true when called on N1 and R2.

R N N R
  nil is returned when called on R1. N2 is returned when called on N2, N3 or R4.
  CalcBeamedGroupEnd() wrongly returns false when called on R4.
  CalcUnbeamedNote() wrongly returns true when called on R1.

N R R N
  nil is returned when called on N1. R2 is returned when called on R2, R3 or N4.
  CalcBeamedGroupEnd() wrongly returns false when called on N4.
  CalcUnbeamedNote() wrongly returns true when called on N1.

R N R N
  nil is returned when called on R1 or R3. N2 is returned when called on itself, just like N4 when called on itself
  CalcBeamedGroupEnd() wrongly returns false when called on N4.
  CalcUnbeamedNote() wrongly returns true when called on R1 or R3.

R N R R
  nil is returned when called on R1. N2 is returned when called on N2, R3 or R4.
  CalcBeamedGroupEnd() wrongly returns false when called on R4.
  CalcUnbeamedNote() wrongly returns true when called on R1.

R R N R
  CalcBeamedGroupEnd() wrongly returns false when called on R4.

R R R N
  CalcBeamedGroupEnd() wrongly returns false when called on N4.



More information about the JWLua mailing list