diff --git a/VERSION b/VERSION index 194c0a4..cd6da96 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -2022 April 06 2022 +2022 April 27 2022 diff --git a/doc/CHANGES b/doc/CHANGES index 9c40a7b..4b9aa09 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -14701,6 +14701,33 @@ The problem was identified to me by Jakob Englhauser. Jakob verified that this fix works. -April 06 midi2abc: removal of spaces in text strings for control +April 06 2022 midi2abc: removal of spaces in text strings for control messages. + +April 27 2022 abc2midi: Recanting change from February 18 2022. +The swap was incorrect. +Fix: swapped p2 and p1 in + *transpose = p2 - p1; +in parsesound() in parseabc.c +abc2midi now transposes this file correctly. + + +X:1 +T: transposition +M: 4/4 +L: 1/4 +K:Cm +V:1 shift=cF +cdef|gabc'| +V:2 sound=cF +cdef|gabc'| +V:3 score=cF +cdef|gabc'| +V:4 instrument=cF +cdef|gabc'| + +Note that the command instrument=cF is not part of the abc standard +and abc2svg does not recognize it. + + diff --git a/doc/readme.txt b/doc/readme.txt index 325d9be..9410c2e 100644 --- a/doc/readme.txt +++ b/doc/readme.txt @@ -1,7 +1,7 @@ abcMIDI : abc <-> MIDI conversion utilities midi2abc version 3.53 April 06 2022 -abc2midi version 4.70 March 20 2022 +abc2midi version 4.72 April 27 2022 abc2abc version 2.16 February 22 2022 yaps version 1.88 February 22 2022 abcmatch version 1.80 November 25 2021 diff --git a/parseabc.c b/parseabc.c index 5ec98aa..6424db8 100644 --- a/parseabc.c +++ b/parseabc.c @@ -1056,7 +1056,7 @@ parsesound (s, word, gottranspose, transpose) *transpose = 0; } else { /* printf("midi note = %d\n",p2); */ - *transpose = p1 - p2; /* [SS] 2022.02.18 */ + *transpose = p2 - p1; /* [SS] 2022.02.18 2022.04.27 */ /* printf("transpose = %d\n",*transpose); */ *gottranspose = 1; } diff --git a/store.c b/store.c index 48f197c..af86f7c 100644 --- a/store.c +++ b/store.c @@ -186,7 +186,7 @@ int main() */ -#define VERSION "4.71 March 20 2022 abc2midi" +#define VERSION "4.72 April 27 2022 abc2midi" /* enables reading V: indication in header */ #define XTEN1 1