2025.01.22

This commit is contained in:
sshlien
2025-01-22 08:14:45 -05:00
parent 7c7ef4c2c6
commit abf7e15301
5 changed files with 28 additions and 8 deletions

View File

@@ -45,7 +45,7 @@
* based on public domain 'midifilelib' package.
*/
#define VERSION "3.60 January 17 2025 midi2abc"
#define VERSION "3.61 January 22 2025 midi2abc"
#include <limits.h>
/* Microsoft Visual C++ Version 6.0 or higher */
@@ -963,8 +963,9 @@ if (start_time >= 0)
/* printf("%6.2f %6.2f %d %d %d %d\n",
(double) start_time/(double) division, (double) Mf_currtime/(double) division, trackno+1, chan +1, pitch,chanbend[chan+1]);
*/
printf("%6.2f %d %d %d %d\n",
if (midiprint == 3) printf("%6.2f %d %d %d %d\n",
(double) start_time/(double) division, trackno+1, chan +1, pitch,chanbend[chan+1]);
else printf("%d %d\n", pitch,chanbend[chan+1]);
if(Mf_currtime > last_tick[chan+1]) last_tick[chan+1] = Mf_currtime;
}
@@ -3239,6 +3240,11 @@ int argc;
{
midiprint = 3;
}
arg = getarg("-midinotes-brief",argc,argv);
if (arg != -1)
{
midiprint = 4;
}
usesplits = 0;
@@ -3477,6 +3483,7 @@ int argc;
printf(" -origin <string> Adds O: field containing string\n");
printf(" -midigram Prints midigram \n");
printf(" -midinotes Prints pitches with bends\n");
printf(" -midinotes-brief Prints only pitches and bends\n");
printf(" -mftext mftext output in beats\n");
printf(" -mftextpulses mftext output in midi pulses\n");
printf(" -mftext mftext output in seconds\n");
@@ -3748,6 +3755,10 @@ int argc;
initfunc_for_midipitch();
midigram(argc,argv);
break;
case 4: initfunc_for_midinotes();
initfunc_for_midipitch();
midigram(argc,argv);
break;
default:
midi2abc(argc,argv);
}