mirror of
https://github.com/sshlien/abcmidi.git
synced 2025-12-06 06:55:06 +00:00
2020.10.9
This commit is contained in:
@@ -13909,3 +13909,12 @@ James Allwright has introduced event_score_linebreak in parseabc.c,
|
|||||||
yapstree.c, etc. which replaces the change made on December 09 2019.
|
yapstree.c, etc. which replaces the change made on December 09 2019.
|
||||||
Except for yapstree.c, event_score_linebreak does nothing.
|
Except for yapstree.c, event_score_linebreak does nothing.
|
||||||
|
|
||||||
|
|
||||||
|
October 10 2020
|
||||||
|
midicopy new feature: -zerochannels will set all channel numbers in
|
||||||
|
the midi file to zero. Some midi files (http://scarlatti.antikytherapubs.com/ )
|
||||||
|
adjust the tuning by assigning each pitch class to a separate channel
|
||||||
|
and applying an appropriate pitchbend to each of these channels.
|
||||||
|
This may pose a problem for some software which attempts to render the
|
||||||
|
midi file in music notation.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ abc2midi version 4.42 October 01 2020
|
|||||||
abc2abc version 2.10 October 01 2020
|
abc2abc version 2.10 October 01 2020
|
||||||
yaps version 1.80 October 07 2020
|
yaps version 1.80 October 07 2020
|
||||||
abcmatch version 1.74 October 01 2020
|
abcmatch version 1.74 October 01 2020
|
||||||
midicopy version 1.36 June 04 2019
|
midicopy version 1.37 October 10 2020
|
||||||
|
|
||||||
24th January 2002
|
24th January 2002
|
||||||
|
|
||||||
@@ -440,6 +440,12 @@ midicopy copies selected tracks, channels, time interval of the input midi file.
|
|||||||
-focusontrack n1,n2,...
|
-focusontrack n1,n2,...
|
||||||
-focusonchannel n1,n2,...
|
-focusonchannel n1,n2,...
|
||||||
-attenuation n
|
-attenuation n
|
||||||
|
-nobends
|
||||||
|
-indrums n1,n2,... (drums to include)
|
||||||
|
-xdrums n1,n2,... (drums to exclude)
|
||||||
|
-onlydrums (only channel 10)
|
||||||
|
-nodrums (exlcude channel 10)
|
||||||
|
-zerochannels set all channel numbers to zero
|
||||||
|
|
||||||
|
|
||||||
midicopy.exe -ver
|
midicopy.exe -ver
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define VERSION "1.36 June 04 2020 midicopy"
|
#define VERSION "1.37 October 10 2020 midicopy"
|
||||||
#include "midicopy.h"
|
#include "midicopy.h"
|
||||||
#define NULLFUNC 0
|
#define NULLFUNC 0
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
@@ -112,6 +112,7 @@ 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 zerochannels = 0; /* [SS] 2020-10-09 */
|
||||||
|
|
||||||
long Mf_numbyteswritten = 0L;
|
long Mf_numbyteswritten = 0L;
|
||||||
long readvarinum ();
|
long readvarinum ();
|
||||||
@@ -1025,6 +1026,7 @@ void
|
|||||||
chanmessage (int status, int c1, int c2)
|
chanmessage (int status, int c1, int c2)
|
||||||
{
|
{
|
||||||
int chan = status & 0xf;
|
int chan = status & 0xf;
|
||||||
|
if (zerochannels) chan = 0; /* [SS] 2020-10-09 */
|
||||||
haschannel[chan] = 1;
|
haschannel[chan] = 1;
|
||||||
|
|
||||||
if (!cut_beginning ())
|
if (!cut_beginning ())
|
||||||
@@ -1853,6 +1855,7 @@ main (int argc, char *argv[])
|
|||||||
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 */
|
||||||
printf ("-nodrums (exlcude channel 10)\n"); /* [SS] 2019-12-22 */
|
printf ("-nodrums (exlcude channel 10)\n"); /* [SS] 2019-12-22 */
|
||||||
|
printf ("-zerochannels set all channel numbers to zero\n"); /* [SS] 2020-10-09 */
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2137,6 +2140,9 @@ main (int argc, char *argv[])
|
|||||||
arg = getarg("-nodrums",argc,argv); /* [SS] 2019-12-22 */
|
arg = getarg("-nodrums",argc,argv); /* [SS] 2019-12-22 */
|
||||||
if (arg >=0) ctocopy[9] = 0;
|
if (arg >=0) ctocopy[9] = 0;
|
||||||
|
|
||||||
|
arg = getarg("-zerochannels",argc,argv); /* [SS] 2020-10-09 */
|
||||||
|
if (arg >=0) zerochannels = 1;
|
||||||
|
|
||||||
F_in = fopen (argv[argc - 2], "rb");
|
F_in = fopen (argv[argc - 2], "rb");
|
||||||
if (F_in == NULL)
|
if (F_in == NULL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user