This PR updates the behavior for songs with drumroll branching conditions (#BRANCHSTART r)
The changes include:
Correctly setting the branch_points bytes in the header when there are only drumroll conditions.
Correctly setting the branch_ratio bytes in the header when total notes differ between branches.
Correctly handling branchInfo bytes for #SECTION commands, covering a number of different corner cases:
SECTION occurs on its own without a #BRANCHSTART
BRANCHSTART occurs with a #SECTION command
BRANCHSTART occurs without a #SECTION command (and is first branch condition)
BRANCHSTART occurs without a #SECTION command (and is NOT first branch condition)
Note: I've added shoto9 to the test suite, but the TJA file is structured in a way that the number of measures doesn't match the number of fumen measures. The TJA needs to be reworked, but that's okay, because its purpose was just to check that the branching bytes were correct.
This PR updates the behavior for songs with drumroll branching conditions (
#BRANCHSTART r
)The changes include:
branch_points
bytes in the header when there are only drumroll conditions.branch_ratio
bytes in the header when total notes differ between branches.branchInfo
bytes for #SECTION commands, covering a number of different corner cases:SECTION occurs on its own without a #BRANCHSTART
BRANCHSTART occurs with a #SECTION command
BRANCHSTART occurs without a #SECTION command (and is first branch condition)
BRANCHSTART occurs without a #SECTION command (and is NOT first branch condition)
Note: I've added
shoto9
to the test suite, but the TJA file is structured in a way that the number of measures doesn't match the number of fumen measures. The TJA needs to be reworked, but that's okay, because its purpose was just to check that the branching bytes were correct.Fixes #40.