Skip to content

Grand Staff Cursor Bar jumps around #318

@chris-saunders

Description

@chris-saunders

Your environment

  • Version used: Develop
  • Platform used: JavaScript
  • Rendering engine used: SVG (default)
  • Browser Name and Version: Any
  • Operating System and version (desktop or mobile): Desktop

Expected Results

Grand staff cursor bar moves smoothly between notes on both the treble and bass staves.
May be a similar issue to #317

Observed Results

Currently there are periods where the cursor jumps much further than it should, and then snaps back as it hits a new note.

Steps to Reproduce (for bugs)

Having notes of different lengths on each staff can often throw the cursor off. Having a half note on the treble staff and a handful of 16th/8th notes/rests on the bass seems to make the cursor jump to the wrong location.
*Edit Created a JS fiddle to demonstrate the issue https://jsfiddle.net/rj63L2ey/5/
Sample AlphaTex:
\tempo 169 . \track \staff{score} \tuning piano \instrument acousticgrandpiano \ks Gb \ts 4 4 \clef G2 g#4.4 c5.4 g4.4 g#4.8{d} f4.16 | f4{t}.8{d} g4.8{d} d#4.4 r.16 d4.4 d4{t}.16 | d4{t}.8{d} r.8 (d4 f4).2 d4.8 | \staff{score} \tuning piano \instrument acousticgrandpiano \ks Gb \ts 4 4 \clef F4 f3.2 (g#3 c4).4{d} r.16 f3.16 | f3{t}.4 f3{t}.16 r.16 (g#3 c4).4{d} f3.8 a#3.8 | a#3{t}.2{d} a#3{t}.8 a#3.8

Possible Solution

May be due to the position setting of the seek bar only respecting the latest (bass staff) note, rather than taking into consideration both staves, and the next note between them.

Bounty

I'll donate some beers for the cause!

Metadata

Metadata

Assignees

Labels

area-playerRelated to the audio playback engine.platform-javascriptRelated to the JavaScript version of alphaTabplatform-netRelated to the .net version of alphaTabstate-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