2025.02.16

This commit is contained in:
sshlien
2025-02-16 20:30:44 -05:00
parent 907c8fa19f
commit d486659fdd
4 changed files with 28 additions and 4 deletions

View File

@@ -1 +1 @@
February 15 2025 February 16 2025

View File

@@ -15644,3 +15644,27 @@ To
if (acc == '_' && !microtone) pitchvalue = pitchvalue - (float) (mul*accidental_size); if (acc == '_' && !microtone) pitchvalue = pitchvalue - (float) (mul*accidental_size);
February 16 2025
abc2midi produced the wrong results for temperamentequal 31
X:5
T: temperamentequal 31
M:none
L:1/2
K:C
%
%%text \%\%MIDI temperamentequal 31
%%MIDI temperamentequal 31
"^Octave divided in 31 equal parts"\
=c ^/c ^c ^3/c ^^c =d _/d _d _3/d __d =c2 |
%
Fix:
In pitchof_b (store.c) it is necessary to scale the microtoneshift by the
accidental_size prior to adding it to the pitchvalue.
pitchvalue += microtoneshift*accidental_size; /* [SS] 2025.02.16 */

View File

@@ -1,7 +1,7 @@
abcMIDI : abc <-> MIDI conversion utilities abcMIDI : abc <-> MIDI conversion utilities
midi2abc version 3.63 February 13 2025 midi2abc version 3.63 February 13 2025
abc2midi version 5.01 February 15 2025 abc2midi version 5.02 February 16 2025
abc2abc version 2.22 April 30 2024 abc2abc version 2.22 April 30 2024
yaps version 1.94 April 30 2024 yaps version 1.94 April 30 2024
abcmatch version 1.83 February 19 2024 abcmatch version 1.83 February 19 2024

View File

@@ -186,7 +186,7 @@ int main()
*/ */
#define VERSION "5.01 February 15 2025 abc2midi" #define VERSION "5.02 February 16 2025 abc2midi"
/* enables reading V: indication in header */ /* enables reading V: indication in header */
#define XTEN1 1 #define XTEN1 1
@@ -3796,7 +3796,7 @@ int *pitchbend;
/* microtone fraction (eg _12/53B,) */ /* microtone fraction (eg _12/53B,) */
microtoneshift = (float) setmicrotone.num /(float) setmicrotone.denom; microtoneshift = (float) setmicrotone.num /(float) setmicrotone.denom;
/* printf("microtoneshift = %f for setmicrotone %d %d\n",microtoneshift, setmicrotone.num,setmicrotone.denom); */ /* printf("microtoneshift = %f for setmicrotone %d %d\n",microtoneshift, setmicrotone.num,setmicrotone.denom); */
pitchvalue += microtoneshift; pitchvalue += microtoneshift*accidental_size; /* [SS] 2025.02.16 */
} }
microtone = 0; microtone = 0;