Stray note in chord track

In this TheoryTab, the bass note of the chord track is sustained after the chord ends. Even when the chord following the IV is not a rest, the bass sustains through nonetheless. This always happens in 6/4 given:

  • The chord’s end is located on the 22nd - 24th semiquavers of a bar; (23rd in this Theorytab)
  • The chord’s beginning is located on or before the 9th semiquaver of the bar including the chord’s end; (7th of the same bar in this Theorytab)

and in 4/4 given:

  • The chord’s end is located on the 16th semiquaver of a bar;
  • The chord’s beginning is located on or before the 7th semiquaver of the bar including the chord’s end.

These sustained notes are related to Hookpad’s automatically generated rhythm pattern for the chord tracks:

Every division on the fixed meter represents a semiquaver in this graph; the top shows 4/4 time, the bottom 6/4 (and 3/4). The gray squares represent key events for the chord and bass respectively, the red and brown areas represent where the beginning and the end of chords belong to such that stray notes can occur (they extend indefinitely to both sides of the bars), and the green bar shows the position of the IV chord in the Theorytab example.

The red zone is also where the bass notes haven’t finished playing in a single repeating unit; the brown zone is where all bass notes have finished playing. Any chord starting in the red zone and terminating in a brown zone will have its bass sustain through the key off event.

Since all export formats do not contain rhythmic data in the chord track, this bug does not occur in exported sheets and MIDIs.

Thank you @HertzDevil for such a detailed description of this bug. I’ll look into it