Skip to content

Grace notes are sometimes rendered on the same beat as the note that precedes them #227

@cheap-glitch

Description

@cheap-glitch

Your environment

  • Version used: 0.9.3.162
  • Platform used: JavaScript
  • Rendering engine used: SVG
  • Browser Name and Version: Firefox 64
  • Operating System and version (desktop or mobile): desktop (ArchLinux)
  • Link to your project:

Expected Results

When between two notes, grace notes should have their own space on the tablature.

Observed Results

While grace notes render properly most of the times, there are some case where they are rendered on the same beat as the note that precedes them. It happens notably when they are inserted between two notes, the first of which is shorter than the second.

For example, the following alphatex snippet renders properly:

14.3.8 12.3{gr}{h} 13.3.8

screenshot_2019-01-21 the guitar lick database
But this one, where the first note is half the length of the second, does not:

14.3.16 12.3{gr}{h} 13.3.8

screenshot_2019-01-21 the guitar lick database 1
The same thing happens even when the notes are on different strings:

14.2.16 12.3{gr}{h} 13.3.8

screenshot_2019-01-21 the guitar lick database 2

Steps to Reproduce (for bugs)

Create a tab with the following alphatex code:

14.3.16 12.3{gr}{h} 13.3.8

Metadata

Metadata

Assignees

Labels

area-renderingEverything related to the renderingstate-acceptedThis is a valid topic to work on.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions