From cded63b590ee33c910b4eca1eb2549e1aededd8f Mon Sep 17 00:00:00 2001 From: Seymour Shlien Date: Fri, 18 Feb 2022 12:33:35 -0500 Subject: [PATCH] 2022.02.18 --- VERSION | 2 +- doc/CHANGES | 19 +++++++++++++++++++ doc/readme.txt | 2 +- parseabc.c | 2 +- store.c | 2 +- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 33f4c16..19b513e 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -2022 February 13 2022 +2022 February 18 2022 diff --git a/doc/CHANGES b/doc/CHANGES index 3e66019..5031530 100644 --- a/doc/CHANGES +++ b/doc/CHANGES @@ -14599,3 +14599,22 @@ abc2midi: added an optional third parameter to %%MIDI bendvelocity which specifies the number of MIDI pitchbend messages to create. If this parameter is missing, the default is 8 as before. + +February 18 2022 +abc2midi bug: the K: and V: score option transposes the music in the +wrong direction. eg + +X:1 +T: transpose +M: 4/4 +L: 1/4 +K: G sound = DC +CDEF|GABc| + +CDEF... converted to BbCDE.. instead of DEF#G... + +Fix: swapped p2 and p1 in + *transpose = p2 - p1; +in parsesound() in parseabc.c + + diff --git a/doc/readme.txt b/doc/readme.txt index a7b16bc..bda655b 100644 --- a/doc/readme.txt +++ b/doc/readme.txt @@ -1,7 +1,7 @@ abcMIDI : abc <-> MIDI conversion utilities midi2abc version 3.50 February 12 2022 -abc2midi version 4.67 February 13 2022 +abc2midi version 4.68 February 18 2022 abc2abc version 2.15 May 25 2021 yaps version 1.87 May 25 2021 abcmatch version 1.80 November 25 2021 diff --git a/parseabc.c b/parseabc.c index a49aa5d..59554cf 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 = p2 - p1; + *transpose = p1 - p2; /* [SS] 2022.02.18 */ /* printf("transpose = %d\n",*transpose); */ *gottranspose = 1; } diff --git a/store.c b/store.c index 3ed7076..dbcfaca 100644 --- a/store.c +++ b/store.c @@ -186,7 +186,7 @@ int main() */ -#define VERSION "4.67 February 13 2022 abc2midi" +#define VERSION "4.68 February 18 2022 abc2midi" /* enables reading V: indication in header */ #define XTEN1 1