2021.04.26

This commit is contained in:
Seymour Shlien
2021-04-26 11:48:42 -04:00
parent 12bf348274
commit 8079788c12
5 changed files with 15 additions and 5 deletions

View File

@@ -1,2 +1,2 @@
2021 March 30 2021
2021 April 26 2021

View File

@@ -14152,3 +14152,13 @@ in the chord [bc] are treated as if they were one note. Otherwise
the measure would be too short (B is shrunk to make room for b and c)
and there could be a loss of synchronization between the voices.
April 26 2021
abc2midi: bar line alignment. The feature introduced in Mar 18 2019,
had a few issues. If the bar ends with a rest, the number of beats
is incorrect because there is no MIDI message to indicate a rest other
than a gap between a NOTEOFF and the following NOTEON and barlines
do not exist in midi files. Using a cumulative beat count does not
detect the possibility that the bar lines can realign because of
two errors cancelling out. As an experiment, I save only the bar size.

View File

@@ -1,7 +1,7 @@
abcMIDI : abc <-> MIDI conversion utilities
midi2abc version 3.47 November 01 2020
abc2midi version 4.51 March 30 2021
abc2midi version 4.52 April 26 2021
abc2abc version 2.12 October 19 2020
yaps version 1.86 December 10 2020
abcmatch version 1.78 March 27 2021

View File

@@ -518,7 +518,7 @@ int pass;
{
char msg[80];
if (barno >= 0 && barno < 1024 && pass == 1) barloc[barno] = tracklen;
if (barno >= 0 && barno < 1024 && pass == 1) barloc[barno] = bar_num; /*[SS] 2021-04-26 */
if (barchecking) {
/* only generate these errors once */
if (noteson && (partrepno == 0)) {
@@ -3527,7 +3527,7 @@ void dump_barloc (FILE *diaghandle, int trkno)
int i;
fprintf(diaghandle,"track = %d voice = %d type = %d number of bars = %d\n",trkno,trackdescriptor[trkno].voicenum,trackdescriptor[trkno].tracktype,barno);
for (i=0;i<barno;i++) {
fprintf(diaghandle,"%6.2f\t",(double) barloc[i]/480.0);
fprintf(diaghandle,"%6.2f\t",(double) barloc[i]); /* [SS] 2021-04-26 */
if (i%8 == 7) fprintf(diaghandle,"\n");
}
fprintf(diaghandle,"\n");

View File

@@ -186,7 +186,7 @@ int main()
*/
#define VERSION "4.51 March 30 2021 abc2midi"
#define VERSION "4.52 April 26 2021 abc2midi"
/* enables reading V: indication in header */
#define XTEN1 1