mirror of
https://github.com/sshlien/abcmidi.git
synced 2025-12-06 15:05:07 +00:00
2022.05.05
This commit is contained in:
@@ -14734,3 +14734,9 @@ and abc2svg does not recognize it.
|
|||||||
April 28 2022
|
April 28 2022
|
||||||
|
|
||||||
midi2abc: minor change for -stats function
|
midi2abc: minor change for -stats function
|
||||||
|
|
||||||
|
|
||||||
|
May 05 2022
|
||||||
|
|
||||||
|
midicopy: introduced new options -nopressure and -nocntrl
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ abc2midi version 4.72 April 27 2022
|
|||||||
abc2abc version 2.16 February 22 2022
|
abc2abc version 2.16 February 22 2022
|
||||||
yaps version 1.88 February 22 2022
|
yaps version 1.88 February 22 2022
|
||||||
abcmatch version 1.80 November 25 2021
|
abcmatch version 1.80 November 25 2021
|
||||||
midicopy version 1.37 October 10 2020
|
midicopy version 1.38 May 06 2022
|
||||||
|
|
||||||
24th January 2002
|
24th January 2002
|
||||||
|
|
||||||
|
|||||||
17
midicopy.c
17
midicopy.c
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "1.37 October 10 2020 midicopy"
|
#define VERSION "1.38 May 05 2022 midicopy"
|
||||||
#include "midicopy.h"
|
#include "midicopy.h"
|
||||||
#define NULLFUNC 0
|
#define NULLFUNC 0
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
@@ -112,6 +112,8 @@ int chosen_drum = 0; /* [SS] 2013-10-01 */
|
|||||||
int drumvelocity = 0; /* [SS] 2013-10-01 */
|
int drumvelocity = 0; /* [SS] 2013-10-01 */
|
||||||
int attenuation = 70; /* [SS] 2017-11-27 */
|
int attenuation = 70; /* [SS] 2017-11-27 */
|
||||||
int nobends = 0; /* [SS] 2017-12-15 */
|
int nobends = 0; /* [SS] 2017-12-15 */
|
||||||
|
int nopressure = 0; /* [SS] 2022-05-05 */
|
||||||
|
int nocntrl = 0; /* [SS] 2022-05-05 */
|
||||||
int zerochannels = 0; /* [SS] 2020-10-09 */
|
int zerochannels = 0; /* [SS] 2020-10-09 */
|
||||||
|
|
||||||
long Mf_numbyteswritten = 0L;
|
long Mf_numbyteswritten = 0L;
|
||||||
@@ -1060,9 +1062,10 @@ chanmessage (int status, int c1, int c2)
|
|||||||
copy_noteon (chan, c1, c2);
|
copy_noteon (chan, c1, c2);
|
||||||
break;
|
break;
|
||||||
case 0xa0:
|
case 0xa0:
|
||||||
copy_pressure (chan, c1, c2);
|
if (nopressure == 0) copy_pressure (chan, c1, c2);
|
||||||
break;
|
break;
|
||||||
case 0xb0:
|
case 0xb0:
|
||||||
|
if (nocntrl == 0)
|
||||||
copy_parameter (chan, c1, c2);
|
copy_parameter (chan, c1, c2);
|
||||||
break;
|
break;
|
||||||
case 0xe0:
|
case 0xe0:
|
||||||
@@ -1073,7 +1076,7 @@ chanmessage (int status, int c1, int c2)
|
|||||||
copy_program (chan, c1);
|
copy_program (chan, c1);
|
||||||
break;
|
break;
|
||||||
case 0xd0:
|
case 0xd0:
|
||||||
copy_chanpressure (chan, c1);
|
if (nopressure == 0) copy_chanpressure (chan, c1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1851,6 +1854,8 @@ main (int argc, char *argv[])
|
|||||||
printf ("-focusonchannels n1,n2,...\n"); /* [SS] 2017-11-27 */
|
printf ("-focusonchannels n1,n2,...\n"); /* [SS] 2017-11-27 */
|
||||||
printf ("-attenuation n\n"); /* [SS] 2017-11-27 */
|
printf ("-attenuation n\n"); /* [SS] 2017-11-27 */
|
||||||
printf ("-nobends\n"); /* [SS] 2017-11-27 */
|
printf ("-nobends\n"); /* [SS] 2017-11-27 */
|
||||||
|
printf ("-nopressure\n"); /* [SS] 2022-05-05 */
|
||||||
|
printf ("-nocntrl\n"); /* [SS] 2022-05-05 */
|
||||||
printf ("-indrums n1,n2,... (drums to include)\n"); /* [SS] 2019-12-22 */
|
printf ("-indrums n1,n2,... (drums to include)\n"); /* [SS] 2019-12-22 */
|
||||||
printf ("-xdrums n1,n2,... (drums to exclude)\n"); /* [SS] 2019-12-22 */
|
printf ("-xdrums n1,n2,... (drums to exclude)\n"); /* [SS] 2019-12-22 */
|
||||||
printf ("-onlydrums (only channel 10)\n"); /* [SS] 2019-12-22 */
|
printf ("-onlydrums (only channel 10)\n"); /* [SS] 2019-12-22 */
|
||||||
@@ -2091,6 +2096,12 @@ main (int argc, char *argv[])
|
|||||||
arg = getarg("-nobends",argc,argv);
|
arg = getarg("-nobends",argc,argv);
|
||||||
if (arg >=0) nobends=1;
|
if (arg >=0) nobends=1;
|
||||||
|
|
||||||
|
/* [SS] 2022-05-05 */
|
||||||
|
arg = getarg("-nopressure",argc,argv);
|
||||||
|
if (arg >=0) nopressure=1;
|
||||||
|
|
||||||
|
arg = getarg("-nocntrl",argc,argv);
|
||||||
|
if (arg >=0) nocntrl = 1;
|
||||||
|
|
||||||
repflag = getarg ("-replace", argc, argv);
|
repflag = getarg ("-replace", argc, argv);
|
||||||
if (repflag >= 0)
|
if (repflag >= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user