Export to GitHub

abc4j - issue #21

parser reads ties(slurs) incorrectly


Posted on Jun 2, 2011 by Happy Elephant

in this abc

<snip> % Generated more or less automatically by swtoabc by Erich Rickheit KSC X:1 T:Little Sir Hugh M:6/8 L:1/8 K:G B/2-c/2|d-e dB-A B| GGD D2B/2-c/2|d-e dB-A G| A3- A2 A|d-e dB-A B|\ G2 D D2 D|G-A Bc-B A| G3- G2|| </snip>

there are a few simple slurs between adjacent notes (notes 1&2, 3&4, etc) parser gets very confused and puts slurs all over the place

attached is what the output should be (expected.tiff) and what it is (actual.tiff)

version 0.5

thanks.

Attachments

Comment #1

Posted on Jan 8, 2015 by Quick Wombat

Hi, your ABC is bogus. - is a tie between 2 notes, to play note 1&2 as a single note of length = 1.length + 2.length

() denotes a slur, which means to play legato

Try with (B/2c/2)|(de) d(BA) B|...

Comment #2

Posted on Jan 9, 2015 by Happy Elephant

You're right. My mistake, I understand the difference now. FWIW, I found this ABC on abcnotation.com, and poking around some more in their collection it seems like this tie-slur confusion is pretty common. So I don't know, having the parser interpret a "tie" between unequal notes as a slur might be worth doing, given the abc data that's in circulation, even though it's wrong.

Status: Invalid

Labels:
Priority-Medium