-
Notifications
You must be signed in to change notification settings - Fork 261
Start Bar breaks on ties #332
Copy link
Copy link
Closed
Labels
area-renderingEverything related to the renderingEverything related to the renderingplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Milestone
Metadata
Metadata
Assignees
Labels
area-renderingEverything related to the renderingEverything related to the renderingplatform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-acceptedThis is a valid topic to work on.This is a valid topic to work on.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Your environment
develop branch
JavaScript
SVG
Chrome 79.0.3945.130
Windows 10 Desktop
https://music-assistant-fit.web.app/
Expected Results
When you specify a start bar, AlphaTab should be able to render starting at that bar.
Observed Results
When you try and render a bar which has a tie to a previous measure, AlphaTab throws an error:
Uncaught Cannot cast null to {
name : [alphaTab,rendering,ScoreBarRenderer],
paintSingleBar : ,
StaffId : score,
SharpKsSteps : 1,4,0,3,6,2,5,
FlatKsSteps : 5,2,6,3,7,4,8,
LineSpacing : 8,
StemWidth : 1.3
}
Steps to Reproduce (for bugs)
Possible Solution
Either disallow starting at measures with a tie to a preceding measure thereby reducing functionality or ignore the tie in the AlphaTex and render as expected without throwing the error.