Skip to content

TabBrushGlyph have Bug: when 6str Note heighter than 5str Will happen #935

@goodgame365

Description

@goodgame365

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

the erro like:
未命名-3

Expected Behavior

The right one should be like this

未命名-5

Steps To Reproduce

the err file here
sb.zip

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.2

Platform

Node.js

Environment

- **Browser**:chrome

Anything else?

I found
TabBrushGlyph.ts on 24 line begin may be wrong:

  let startY: number =
        cy + this.x + (tabBarRenderer.getNoteY(this._beat.maxNote!, NoteYPosition.Top));
    let endY: number =
        cy + this.y + tabBarRenderer.getNoteY(this._beat.minNote!, NoteYPosition.Bottom);

this._beat.maxNote! and this._beat.minNote! is erro Should be changed to


this._beat.maxStringNote! and this._beat.minStringNote!


Complete code:


  let startY: number =
        cy + this.x + (tabBarRenderer.getNoteY(this._beat.maxNote!, NoteYPosition.Top));
    let endY: number =
        cy + this.y + tabBarRenderer.getNoteY(this._beat.minStringNote!, NoteYPosition.Bottom);

Metadata

Metadata

Assignees

Labels

area-renderingEverything related to the renderingplatform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions