2022.02.18

This commit is contained in:
Seymour Shlien
2022-02-18 12:33:35 -05:00
parent 57a5ae2ba7
commit cded63b590
5 changed files with 23 additions and 4 deletions

View File

@@ -1,2 +1,2 @@
2022 February 13 2022 2022 February 18 2022

View File

@@ -14599,3 +14599,22 @@ abc2midi: added an optional third parameter to %%MIDI bendvelocity
which specifies the number of MIDI pitchbend messages to create. which specifies the number of MIDI pitchbend messages to create.
If this parameter is missing, the default is 8 as before. 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

View File

@@ -1,7 +1,7 @@
abcMIDI : abc <-> MIDI conversion utilities abcMIDI : abc <-> MIDI conversion utilities
midi2abc version 3.50 February 12 2022 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 abc2abc version 2.15 May 25 2021
yaps version 1.87 May 25 2021 yaps version 1.87 May 25 2021
abcmatch version 1.80 November 25 2021 abcmatch version 1.80 November 25 2021

View File

@@ -1056,7 +1056,7 @@ parsesound (s, word, gottranspose, transpose)
*transpose = 0; *transpose = 0;
} else { } else {
/* printf("midi note = %d\n",p2); */ /* printf("midi note = %d\n",p2); */
*transpose = p2 - p1; *transpose = p1 - p2; /* [SS] 2022.02.18 */
/* printf("transpose = %d\n",*transpose); */ /* printf("transpose = %d\n",*transpose); */
*gottranspose = 1; *gottranspose = 1;
} }

View File

@@ -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 */ /* enables reading V: indication in header */
#define XTEN1 1 #define XTEN1 1