mirror of
https://github.com/sshlien/abcmidi.git
synced 2025-12-06 15:05:07 +00:00
2021.11.25
This commit is contained in:
@@ -49,7 +49,7 @@ Matching:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "1.79 May 25 2021 abcmatch"
|
#define VERSION "1.80 Novemeber 25 2021 abcmatch"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -274,7 +274,7 @@ make_note_representation (int *nnotes, int *nbars, int maxnotes, int maxbars,
|
|||||||
these bar line indications. Note bar numbering starts
|
these bar line indications. Note bar numbering starts
|
||||||
from 0. [SS] 2013-11-17
|
from 0. [SS] 2013-11-17
|
||||||
*/
|
*/
|
||||||
if (*nbars >0 && *nnotes > 0) { /* 2021-03-27 */
|
if (*nnotes > 0) { /* [SS] 2021-11-25 */
|
||||||
midipitch[*nnotes] = BAR;
|
midipitch[*nnotes] = BAR;
|
||||||
notelength[*nnotes] = BAR;
|
notelength[*nnotes] = BAR;
|
||||||
(*nnotes)++;
|
(*nnotes)++;
|
||||||
|
|||||||
65
doc/CHANGES
65
doc/CHANGES
@@ -14426,3 +14426,68 @@ V:2 shift=DE,
|
|||||||
Bcde|Bcde|
|
Bcde|Bcde|
|
||||||
|
|
||||||
|
|
||||||
|
October 15 2021
|
||||||
|
|
||||||
|
Abc2abc -P bug
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
X:1
|
||||||
|
T: P bug
|
||||||
|
M:4/4
|
||||||
|
L:1/4
|
||||||
|
V:1 clef=treble
|
||||||
|
V:2 clef=bass
|
||||||
|
%%staves [1 2]
|
||||||
|
K:C
|
||||||
|
V:1
|
||||||
|
C2 D2 | C4 |
|
||||||
|
V:2
|
||||||
|
C,2 G,2 | C,4|
|
||||||
|
|
||||||
|
The command
|
||||||
|
abc2abc t.abc -t 3 -P 1
|
||||||
|
fails to transpose voice 1
|
||||||
|
|
||||||
|
This bug has been around since this option was introduced in June 7 2011.
|
||||||
|
Fortunately, it has not bothered anyone until recently.
|
||||||
|
If you add another K:c after the first V:1 command in the body as
|
||||||
|
shown below.
|
||||||
|
|
||||||
|
X:1
|
||||||
|
T: P bug
|
||||||
|
M:4/4
|
||||||
|
L:1/4
|
||||||
|
V:1 clef=treble
|
||||||
|
V:2 clef=bass
|
||||||
|
%%staves [1 2]
|
||||||
|
K:C
|
||||||
|
V:1
|
||||||
|
K:C
|
||||||
|
C2 D2 | C4 |
|
||||||
|
V:2
|
||||||
|
C,2 G,2 | C,4|
|
||||||
|
|
||||||
|
then voice 1 will be transposed correctly. Unfortunately, there is
|
||||||
|
no easy fix. When the -P option is present, abc2abc ignores the
|
||||||
|
first K: field command. (In toabc.c line 1643 event_key aborts
|
||||||
|
prior to setting up the arrays for a key transpose. Commenting
|
||||||
|
out this return statement introduces another problem.)
|
||||||
|
|
||||||
|
The main issue is that abc2abc only does one pass through the
|
||||||
|
input file. It does not know whether there is a K: field command
|
||||||
|
following V:1. If it assumes that there is none and forces a
|
||||||
|
call to event_key in event_voice, there may be another problem
|
||||||
|
when a different K: field command is found eventually. I have
|
||||||
|
decided to suspend support to the -P option because it would be
|
||||||
|
too complicated to fix this.
|
||||||
|
|
||||||
|
|
||||||
|
November 25 2021
|
||||||
|
|
||||||
|
abcmatch bug. The fix on 2021-03-27 made abcmatch non-operable. The
|
||||||
|
number of bars *nbars is never incremented. The line was replaced
|
||||||
|
with
|
||||||
|
if (*nnotes > 0) { /* [SS] 2021-11-25 */
|
||||||
|
in the function make_note_representation(...)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ midi2abc version 3.48 June 27 2021
|
|||||||
abc2midi version 4.61 October 11 2021
|
abc2midi version 4.61 October 11 2021
|
||||||
abc2abc version 2.15 May 25 2021
|
abc2abc version 2.15 May 25 2021
|
||||||
yaps version 1.87 May 25 2021
|
yaps version 1.87 May 25 2021
|
||||||
abcmatch version 1.79 May 25 2021
|
abcmatch version 1.80 November 25 2021
|
||||||
midicopy version 1.37 October 10 2020
|
midicopy version 1.37 October 10 2020
|
||||||
|
|
||||||
24th January 2002
|
24th January 2002
|
||||||
|
|||||||
Reference in New Issue
Block a user