Skip to content

Tied notes broken for non-stringed instruments #206

@gburlet

Description

@gburlet

Your environment

  • Version used: develop branch
  • Platform used: JavaScript
  • Rendering engine used: SVG
  • Browser Name and Version: All major browsers
  • Operating System and version (desktop or mobile): desktop and mobile

Expected Results

Alphatex:

\tuning none\tempo 145.\ks F \ts 3 4 \clef G2 r.4 r.4 r.8 a4.8 | d5.8 a4.4 d5.8 a4.8 d5.8 | a4.8 a4.4 a4.8 a4.8 g4.8 | g4.4 f4.4 d4.4 | r.8 a4.8 -.4  d5.4 a4.8 d5.8 | a4.8 d5.8 a4.4 a4.8 g4.8 | g4.4 g4.4 a#4.8 a4.8 | g4.4 a4.8 d5.8 a4.8 d5.8 | -.8  d5.8 a4.4 a4.8 c5.8 | c5.4{d} g4.8 f4.4 | d4.4 d4.4 -.4  f4.4 | -.4  a4.4 c5.4 | -.4  d#5.4 d5.8 g#4.8 -.8  a4.8 f4.8 -.8  | -.8  e4.8 -.8  d4.4 -.4  c4.4 | a5.4 a5.4 r.8 a5.8 | f5.4 a5.4 a5.8 r.32 f5.16{d} | a5.4 f5.4 d5.4 | -.4  a5.4 a5.4 | -.4  a5.4 a5.4 | r.8 a5.8 a5.4 g5.4 | c5.4{d} a5.16 f5.16 -.16  -.4  a5.4 | -.4  a5.4 a5.4 | -.8  a5.16 f5.16 -.16  -.4  a5.4 f5.4 -.4  | -.4  d5.4 a#4.16 -.16  d5.16 -.8  f5.8 | -.8  d5.8 f5.8 a5.8 d5.4 -.4  | -.4  f4.16 a#4.8{d} a4.8 f4.8 | -.4  r.4 f4.4 | g#4.8 f4.8 -.8  g4.4 r.16 g#4.8{d} | r.8 g#4.8 f4.4 g#4.4 | g4.4 f4.16 g#4.8{d} f4.4 | f4.4 g#4.4 g4.4 | g#4.8 g4.8 f4.16 g#4.8{d} f4.8 g#4.8 | g4.8 f4.16 g#4.16 r.8 g4.8 g#4.8 g4.8 | f4.8 d4.8 f4.4 g#4.8 g4.8 | -.4  g#4.16 f4.16 -.8  g4.8 f4.4 | f4.4 g#4.4 g4.8{d} f4.16 | r.8 f4.16 g4.16 f4.4 f4.4 | g#4.4 g4.4 f4.8 f4.8 | g4.16 f4.8{d} d4.8 f4.8 g#4.8 g#4.8 | g#4.4 f4.2 | c5.4 -.4  e5.4 -.4  g5.4 | g5.8 g5.8 e5.8 c5.8 f5.8 f5.8 | f5.8 f5.16 -.16  g5.16 -.4  a5.4 -.4  | -.4  e5.8 e5.8 -.4  g5.4 | c5.4 e5.8 c5.8 e5.8 g5.8 | f5.4 f5.8 f5.16 -.16  g5.16 -.4  a5.4 | -.2  a#5.8 a#5.8 | -.4  d6.4 a#5.8 c#6.8 c#6.8 c#6.8 | -.8  a#5.8 f5.4 f5.8 f5.8 | g#5.4 d6.2 | a#4.8 -.8  d5.8 g5.8 g5.8 e5.4 -.4  | e5.4 e5.4{d} f5.8 | f5.4 f5.8 e5.8 -.8  d5.4 -.4  | -.4  c5.4 -.4  a#5.4 | a5.4 -.4  -.4  g5.4 | f5.4 -.4  -.4  f5.4 | e5.4 -.4  -.8  d5.4{d} | c5.2 a#5.4 | a5.4{d} g5.4{d} | f#5.2 d5.4 | a#4.2 d5.4 | b4.4 d5.4 c5.4 -.4  | -.4  c#5.4 d5.4 | d5.4 r.8 f5.8 f5.8 d5.16 a#4.16 | r.16 a#4.8{d} e5.16 g5.16 -.32  e5.16{d} r.16 a4.8{d} | a4.16 g4.16 f4.8 d5.4 g4.8 e5.8 | -.8  a4.8 f5.4 r.4 | r.8 f#4.16 g#4.16 f#4.16 g#4.8 f#4.16 g#4.16 f#4.16 -.8  g#4.8 | c#5.8 g#4.8 c#5.8 g#4.8 c#5.8{d} a#4.16 | b4.4 a#4.8 g#4.16 f#4.16 g#4.16 f#4.16 -.8  g#4.8 | f#4.16 g#4.16 f#4.8 -.8  g#4.8 c#5.8 r.16 c#5.8{d} | r.8 a#4.8 a#4.4 a4.16 a#4.8{d} | a#4.16 a4.16 -.8  a#4.8 r.16 c5.8{d} g4.8{d} f#4.16 | g#4.8 f#4.16 g#4.16 f#4.16 g#4.8 f#4.16 g4.16{d} c#5.32 -.8  | c#5.4 g#4.8 a#4.16 a4.16 -.16  -.4  a#4.4 | a#4.4 b4.16 c5.8 g4.16 e4.16 c4.8{d} | c#4.8 c#4.8 a#3.4 e4.8 c#4.8 | r.16 f4.16 e4.8 -.8  r.16 f#4.16 g4.8 c4.8{d} g4.16 | g#4.16 g4.16 -.8  g#4.8 r.16 a#4.16 a4.16 -.16  -.16  a#4.16 -.4  c5.4 | -.4  c5.4 c5.4 | -.4  c5.4 c5.4 | e5.4{d} f5.8 r.16 g#4.8{d} | e4.8 d#4.8 d4.4 c5.4 | g4.4 c5.8 b4.8 c5.4 | c5.4 -.4  c#5.4 e4.8 c#5.8 | -.8  c#4.8 e4.8 c#4.8 c#4.16 e4.16 d#4.8 -.8  | -.16  c5.16 c5.8 c#5.8 e4.8 c#5.4 | c#4.16 e4.16 c#4.8 -.8  e4.16 c#4.16 -.8  e4.8 d#4.8 c5.8 | c#5.8 e4.8 c#4.8{d} c#4.16 e4.8 e4.8 | c#4.16 e4.16 d#4.8 c5.4 a3.8 f#4.8 | a#3.16 c4.8 e4.16 g4.16 c5.16 c#4.8 -.8  c#4.4 | -.4  r.4 a3.4 | a#3.2 -.8 {d} a3.16 | -.8  d3.8 a#3.2 | -.4  a3.8 -.8  a#3.8 -.16  a3.8 f3.16 | d3.4 a#3.2 | a3.4 -.4  -.4  f3.8 d3.8 | a3.2{d} | -.2  -.8  a4.8 | d5.8 a4.8 d5.8 a4.8 d5.8 a4.8 | r.16 a4.16 a4.8 a4.8 g4.8 g4.8 f4.8 -.8  | -.8  d4.8 -.8  -.4  a4.8 d5.8 | a4.8 d5.8 a4.8 d5.8 a4.8 g#4.16 -.16  a4.16 | g4.4 -.4  g4.4 g4.8{d} c5.16 | a#4.8 a4.8 g4.4 a4.8 d5.8 | a4.8 d5.4 d5.8 a4.16 g#4.16 -.16  -.8  a4.8 | -.4  c5.4 c5.4 g4.8 f4.8 | -.8  d4.4{d} d4.4 | f4.4 a4.4 c5.4 | d#5.8 d5.8 g#4.8 a4.8 f4.4 | -.4  r.4 r.4 

correctly renders this as of commit 8ad767d:

screen shot 2018-10-18 at 12 47 05 pm

Observed Results

Same alphatex as input renders this on latest develop branch:

screen shot 2018-10-18 at 1 02 13 pm

Steps to Reproduce (for bugs)

Render the above alphatex on the HEAD of the develop branch.

Possible Solution

Tied notes for non-stringed instruments (e.g., vocal music) was implemented in Issue #139. Commit 491d8b2 specifically addressed the issue of tied notes in this context. The last build in which I know that tied notes for non-stringed instruments was working was Commit 8ad767d.

Current Workarounds

Generate guitar tablature for non-guitar instruments as AlphaTex input, then hide the tab staff.

Bounty

I'll donate some beers for the cause!

Metadata

Metadata

Assignees

Labels

area-file-formatsRelated to supported file formatsstate-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