mirror of
https://github.com/sshlien/abcmidi.git
synced 2026-02-04 20:58:10 +00:00
2022.09.01
This commit is contained in:
@@ -14853,7 +14853,8 @@ Fixed the abc parser so it does not report a malformed note
|
|||||||
when it encounters a dotted bar line .| -- (in parsemusic() in parseabc.c).
|
when it encounters a dotted bar line .| -- (in parsemusic() in parseabc.c).
|
||||||
The dotted bar line is treated as a regular bar line.
|
The dotted bar line is treated as a regular bar line.
|
||||||
|
|
||||||
August 23 2022
|
|
||||||
|
|
||||||
midi2abc -midistats introducing channel spread.
|
August 23 2022, September 01 2022
|
||||||
|
|
||||||
|
midi2abc -midistats introducing quietTime.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
abcMIDI : abc <-> MIDI conversion utilities
|
abcMIDI : abc <-> MIDI conversion utilities
|
||||||
|
|
||||||
midi2abc version 3.56 August 24 2022
|
midi2abc version 3.57 September 01 2022
|
||||||
abc2midi version 4.76 August 01 2022
|
abc2midi version 4.76 August 01 2022
|
||||||
abc2abc version 2.18 June 14 2022
|
abc2abc version 2.18 June 14 2022
|
||||||
yaps version 1.90 June 14 2022
|
yaps version 1.90 June 14 2022
|
||||||
|
|||||||
11
midi2abc.c
11
midi2abc.c
@@ -45,7 +45,7 @@
|
|||||||
* based on public domain 'midifilelib' package.
|
* based on public domain 'midifilelib' package.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define VERSION "3.56 August 24 2022 midi2abc"
|
#define VERSION "3.57 September 01 2022 midi2abc"
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
/* Microsoft Visual C++ Version 6.0 or higher */
|
/* Microsoft Visual C++ Version 6.0 or higher */
|
||||||
@@ -1253,13 +1253,6 @@ if (npulses > 0)
|
|||||||
for (i=1;i<17;i++) printf("%5.2f ",chnactivity[i]/(double) trkdata.npulses[0]);
|
for (i=1;i<17;i++) printf("%5.2f ",chnactivity[i]/(double) trkdata.npulses[0]);
|
||||||
else
|
else
|
||||||
for (i=0;i<17;i++) printf("%5.2f ",(double) chnactivity[i]);
|
for (i=0;i<17;i++) printf("%5.2f ",(double) chnactivity[i]);
|
||||||
printf("\nspread ");
|
|
||||||
for (i=1;i<17;i++) {
|
|
||||||
delta = trkdata.npulses[0] - trkdata.quietTime[i];
|
|
||||||
if (trkdata.quietTime[i] < quietLimit) delta = trkdata.npulses[0];
|
|
||||||
delta = delta / (double) trkdata.npulses[0];
|
|
||||||
printf (" %5.3f ", delta);
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("\npitchentropy %f\n",histogram_entropy(pitchclass_activity,12));
|
printf("\npitchentropy %f\n",histogram_entropy(pitchclass_activity,12));
|
||||||
printf("\n");
|
printf("\n");
|
||||||
@@ -1327,6 +1320,8 @@ for (i=0;i<17;i++) {
|
|||||||
printf("%d %d ",trkdata.notecount[i],trkdata.chordcount[i]);
|
printf("%d %d ",trkdata.notecount[i],trkdata.chordcount[i]);
|
||||||
printf("%d %d ",trkdata.notemeanpitch[i], trkdata.notelength[i]);
|
printf("%d %d ",trkdata.notemeanpitch[i], trkdata.notelength[i]);
|
||||||
printf("%d %d ",trkdata.cntlparam[i],trkdata.pressure[i]); /* [SS] 2022-03-04 */
|
printf("%d %d ",trkdata.cntlparam[i],trkdata.pressure[i]); /* [SS] 2022-03-04 */
|
||||||
|
printf("%d ",trkdata.quietTime[i]); /* [SS] 2022.09.01 */
|
||||||
|
trkdata.quietTime[i] = 0;
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
channel2nnotes[i] += trkdata.notecount[i] + trkdata.chordcount[i];
|
channel2nnotes[i] += trkdata.notecount[i] + trkdata.chordcount[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user