2022.02.08

This commit is contained in:
Seymour Shlien
2023-02-08 13:00:26 -05:00
parent c01220de2d
commit 5202b73bac
6 changed files with 15 additions and 9 deletions

View File

@@ -1,2 +1,2 @@
February 07 2023 February 08 2023

View File

@@ -15074,3 +15074,8 @@ abc2abc: in toabc.c, James Allwright has introduced a new option -c
which replaces /2 with /. He also fixed the -h output in which replaces /2 with /. He also fixed the -h output in
event_init() so that all options are listed. event_init() so that all options are listed.
February 08 2023
midi2abc, mftext, midistats: modified midifile.c so that it indicates where
it encounters an unexpected byte in the input midi file.

View File

@@ -1,12 +1,12 @@
abcMIDI : abc <-> MIDI conversion utilities abcMIDI : abc <-> MIDI conversion utilities
midi2abc version 3.58 December 09 2022 midi2abc version 3.59 February 08 2023
abc2midi version 4.84 January 06 2023 abc2midi version 4.84 January 06 2023
abc2abc version 2.20 February 07 2023 abc2abc version 2.20 February 07 2023
yaps version 1.92 January 06 2023 yaps version 1.92 January 06 2023
abcmatch version 1.82 June 14 2022 abcmatch version 1.82 June 14 2022
midicopy version 1.38 May 06 2022 midicopy version 1.38 May 06 2022
midistats version 0.58 December 09 2022 midistats version 0.59 February 08 2023
24th January 2002 24th January 2002

View File

@@ -45,7 +45,7 @@
* based on public domain 'midifilelib' package. * based on public domain 'midifilelib' package.
*/ */
#define VERSION "3.58 December 09 2022 midi2abc" #define VERSION "3.59 February 08 2023 midi2abc"
#include <limits.h> #include <limits.h>
/* Microsoft Visual C++ Version 6.0 or higher */ /* Microsoft Visual C++ Version 6.0 or higher */

View File

@@ -198,6 +198,7 @@ char *s;
int c; int c;
while ( n++<4 && (c=(*Mf_getc)()) != EOF ) { while ( n++<4 && (c=(*Mf_getc)()) != EOF ) {
Mf_bytesread++; /* [SS] 2023-02-08 */
if ( c != *p++ ) { if ( c != *p++ ) {
char buff[32]; char buff[32];
(void) strcpy(buff,"expecting "); (void) strcpy(buff,"expecting ");
@@ -229,7 +230,7 @@ readheader() /* read a header chunk */
return; return;
Mf_toberead = read32bit(); Mf_toberead = read32bit();
Mf_bytesread = 0; /* Mf_bytesread = 0; [SS] 2023-01-08 */
format = read16bit(); format = read16bit();
ntrks = read16bit(); ntrks = read16bit();
division = read16bit(); division = read16bit();
@@ -281,7 +282,7 @@ readtrack() /* read a track chunk */
Mf_toberead = read32bit(); Mf_toberead = read32bit();
Mf_currtime = 0; Mf_currtime = 0;
Mf_bytesread =0; /* Mf_bytesread =0; [SS] 2022.02.08 */
if ( Mf_trackstart ) if ( Mf_trackstart )
(*Mf_trackstart)(); (*Mf_trackstart)();
@@ -397,9 +398,9 @@ static void
badbyte(c) badbyte(c)
int c; int c;
{ {
char buff[32]; char buff[96]; /* [SS] 2022.02.08 */
(void) sprintf(buff,"unexpected byte: 0x%02x",c); (void) sprintf(buff,"unexpected byte: 0x%02x at byte %ld (0x%lX)",c,Mf_bytesread,Mf_bytesread);
mferror(buff); mferror(buff);
} }

View File

@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define VERSION "0.58 December 08 2022 midistats" #define VERSION "0.59 February 08 2023 midistats"
#include <limits.h> #include <limits.h>
/* Microsoft Visual C++ Version 6.0 or higher */ /* Microsoft Visual C++ Version 6.0 or higher */