Score model wrong without sending it through serializer #551
Labels
area-rendering
Everything related to the rendering
platform-java
Related to the Java version of alphaTab
platform-javascript
Related to the JavaScript version of alphaTab
platform-net
Related to the .net version of alphaTab
state-accepted
This is a valid topic to work on.
type-bug 🕷️
Observed Results
When the score model is directly sent into the ScoreRenderer after loading it, it seems that various details are wrong in the overall model. Especially regarding the timing.
This requires currently the unit tests to send it once through the JsonSerializer.
Expected Results
The Score datamodel should be 100% after loading and calling finish.
Steps to Reproduce
Further details
As already so often in the past already, the grace timing seems to be one bad player in this bug. The
GraceGroup.addBeat
uses the absoluteDisplayStart for the unique IDs. But when the first beat is added in Voice.finish on line 187, the timings are not yet defined.A fix could be to just update the IDs of the grace groups after the display and playback times are defined.
Your environment
Version
Flavor
The text was updated successfully, but these errors were encountered: