abcjs
abcjs copied to clipboard
Animation is completely wrong
Hi Paul, I have this abc str:
%%measurenb 1
X:1
T:
%%stretchlast
M:6/4
L:1/4
Q:1/4=70
K:_e_/a clef=g
z z F =E/2"^۷"F/2 G3/2 "^۷"A/2 |F G3/2 "^۷"A/2 c3/4"^۷"d/4 c/4c/4B/4B/4 A/4A/4G/4G/4 |
G z F =E/2"^۷"F/2 G3/2 "^۷"A/2 |F G3/2 A/2 c3/4d/4 c/4c/4B/4B/4 A/4A/4G/4G/4 |
G z A/2"^۷"G/2 A/2"^۷"G/2 F3/2 =E/2 |F G3/2 "^۷"A/2 F G/2"^۷"A/2 B/2"^۷"c/2 |d/4"^۷"c/4B/4"^۷"A/4 G A/2G/2 A/2G/2 F3/2 =E/2 |
F G3/2 A/2 F G2 |z z c/2"^۷"B/2 c/2"^۷"B/2 c3/2 B/2 |A B3/2 A/2 A/2"^۷"G/2 B/4"^۷"A/4A/4"^۷"G/4 A |
z z c B/2"^۷"c/2 d3/2 "^۷"e/2 |c d3/2 "^۷"e/2 e/2"^۷"f/2 z z |A z c B/2"^۷"c/2 d3/2 "^۷"e/2 |
c d3/2 "^۷"e/2 e/2"^۷"f/2 z z |A z c3/4"^۷"B/4 c/2"^۷"d/2 G3/2 "^۷"A/2 |F G3/2 A/2 F G2 |
c B/4"^۷"A/4G/2 c3/4B/4 c/2"^۷"d/2 G3/2 "^۷"A/2 |F G3/2 A/2 F G2 |z c3/2 B/2 c d3/2 e/2 |
c d3/2 e/2 e/2f/2 e/4d/4d/4c/4 d |z z e/2d/2 e/2d/2 c3/2 B/2 |
c d3/2 e/2 c z d |z z c B/2c/2 d3/2 e/2 |c d3/2 e/2 e/2f/2 z/4 z/4 z/4 z/4 |
A z c3/4B/4 c/2d/2 c/4B/4c/4B/4 A3/4G/4 |F G3/2 A/2 F G/2A/2 B/2c/2 |
d/4c/4B/4A/4 G c3/4B/4 c/2d/2 c/4B/4B/4A/4 A/4G/4G/4F/4 |
F G3/2 A/2 F G2 |]
It is only 28 measures I tested this abc string here: https://editor.drawthedots.com/ but the animation after 10 measures does not work correctly it plays one note and the cursor is at another note!
I tested another piece of music which is 6/4 and it has the same problem!
I changed that abc str to 3/4
%%measurenb 1
X:1
T:
%%stretchlast
M:3/4
L:1/4
Q:1/4=70
K:_e_/a clef=g
z z F | =E/2"^۷"F/2 G3/2 "^۷"A/2 |
F G3/2 "^۷"A/2 | c3/4"^۷"d/4 c/4c/4B/4B/4 A/4A/4G/4G/4 |
G z F | =E/2"^۷"F/2 G3/2 "^۷"A/2 |
F G3/2 A/2 | c3/4d/4 c/4c/4B/4B/4 A/4A/4G/4G/4 |
G z A/2 "^۷"G/2| A/2"^۷"G/2 F3/2 =E/2 |
F G3/2 "^۷"A/2 | F G/2"^۷"A/2 B/2"^۷"c/2 |
d/4"^۷"c/4B/4"^۷"A/4 G A/2G/2 | A/2G/2 F3/2 =E/2 |
F G3/2 A/2| F G2 |
z z c/2"^۷"B/2| c/2"^۷"B/2 c3/2 B/2 |
A B3/2 A/2 |A/2"^۷"G/2 B/4"^۷"A/4A/4"^۷"G/4 A |
z z c | B/2"^۷"c/2 d3/2 "^۷"e/2 |
c d3/2 "^۷"e/2 | e/2"^۷"f/2 z z |
A z c| B/2"^۷"c/2 d3/2 "^۷"e/2 |
c d3/2 "^۷"e/2 | e/2"^۷"f/2 z z |
A z c3/4"^۷"B/4| c/2"^۷"d/2 G3/2 "^۷"A/2 |
F G3/2 A/2| F G2 |
c B/4"^۷"A/4G/2 c3/4B/4 |c/2"^۷"d/2 G3/2 "^۷"A/2 |
F G3/2 A/2 |F G2 |
Now animation is correct. It is really strange! Can't we write 6/4?
I changed 6/4 to 3/2 without changing anything else in the first abc string and now it works!
That sounds like a bug. I'll research it.