mirror of
https://github.com/sshlien/abcmidi.git
synced 2025-12-05 22:35:06 +00:00
2024.01.02
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.TH MIDISTATS 1 "27 December 2023"
|
||||
.TH MIDISTATS 1 "02 January 2024"
|
||||
.SH NAME
|
||||
\fBmidistats\fP \- program to summarize the statistical properties of a midi file
|
||||
.SH SYNOPSIS
|
||||
@@ -78,10 +78,17 @@ that occur in the midi file.
|
||||
.PP
|
||||
key indicates the key of the music, the number of sharps (positive) or
|
||||
flats (negative) in the key signature, and a measure of the confidence
|
||||
in this key signature. The key was estimated from the above pitch histogram.
|
||||
A confidence level below 0.4 indicates that the pitch histogram does
|
||||
not follow the histogram of a major or minor scale. (It may be the
|
||||
result of a mixture of two key signatures.)
|
||||
in this key signature. The key was estimated from the above pitch histogram
|
||||
by convolving with Craig Sapp's model. The peak of rmaj or rmin (below)
|
||||
indicates the key. A correlation less than 0.4 indicates that the pitch
|
||||
histogram does not follow the histogram of a major or minor scale.
|
||||
(It may be the result of a mixture of two key signatures.)
|
||||
.PP
|
||||
rmaj the cross correlation coefficients with Craig Sapp's major key model
|
||||
for each of the 11 keys (C, C#, D, ...,B).
|
||||
.PP
|
||||
rmaj the cross correlation coefficients with Craig Sapp's minor key model
|
||||
for each of the 11 keys (C, C#, D, ...,B).
|
||||
.PP
|
||||
pitchact is a similar histogram but is weighted by the length of
|
||||
the notes.
|
||||
|
||||
@@ -6,7 +6,7 @@ abc2abc version 2.20 February 07 2023
|
||||
yaps version 1.92 January 06 2023
|
||||
abcmatch version 1.82 June 14 2022
|
||||
midicopy version 1.39 November 08 2022
|
||||
midistats version 0.83 December 26 2023
|
||||
midistats version 0.84 January 02 2023
|
||||
|
||||
24th January 2002
|
||||
Copyright James Allwright
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#define VERSION "0.83 December 27 2023 midistats"
|
||||
#define VERSION "0.84 December 29 2023 midistats"
|
||||
|
||||
/* midistrats.c is a descendent of midi2abc.c which was becoming to
|
||||
large. The object of the program is to extract statistical characterisitic
|
||||
@@ -1381,8 +1381,11 @@ for (r=0;r<12;r++) {
|
||||
if (bestMode == 0) sf = maj2sf[bestIndex];
|
||||
else sf = min2sf[bestIndex];
|
||||
|
||||
/*printf("\nkeymatch: best = %f bestIndex = %d bestMode = %d",best,bestIndex,bestMode);*/
|
||||
printf("\nkey %s%s %d %f",keylist[bestIndex],majmin[bestMode],sf,best);
|
||||
printf("\nrmaj ");
|
||||
for (r=0;r<12;r++) printf("%7.3f",rmaj[r]);
|
||||
printf("\nrmin ");
|
||||
for (r=0;r<12;r++) printf("%7.3f",rmin[r]);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user