2024.07.26

This commit is contained in:
sshlien
2024-07-26 16:48:42 -04:00
parent 10af1c7b16
commit 4c571ebe65
4 changed files with 24 additions and 22 deletions

View File

@@ -1 +1 @@
June 18 2024 July 26 2024

View File

@@ -36,25 +36,26 @@ number.
.PP .PP
trkinfo is an array of 19 numbers which indicates the statistical properties trkinfo is an array of 19 numbers which indicates the statistical properties
of the track of interest. The following data is given: of the track of interest. The following data is given:
the channel number, 0 the channel number,
the first program assigned to this channel, 1 the first program assigned to this channel,
the number of notes for this channel counting any chords as one note, 2 the number of notes for this channel counting any chords as one note,
the total number of notes for this for this channel, 3 the total number of notes for this for this channel,
the sum of the MIDI pitches for all the notes, 4 the sum of the MIDI pitches for all the notes,
the sum of the note durations in MIDI pulse units, 5 the sum of the note durations in MIDI pulse units,
the number of control parameter messages, 6 the number of pitchbend messages,
the number of pressure messages. 7 the number of control parameter messages,
the number of distinct rhythm patterns for each channel 8 the number of pressure messages.
the number of pulses the channel was inactive 9 the number of distinct rhythm patterns for each channel
the minimum pitch value 10 the number of pulses the channel was inactive
the maximum pitch value 11 the minimum pitch value
the minimum note length in pulses 12 the maximum pitch value
the maximum note length in pulses 13 the minimum note length in pulses
the number of gaps in the channel 14 the maximum note length in pulses
the entropy of the pitch class histogram for that channel 15 the number of gaps in the channel
the number of notes whose pitch were the same as the previous note 16 the entropy of the pitch class histogram for that channel
the number of notes whose pitch changed by less than 4 semitones 17 the number of notes whose pitch were the same as the previous note
the number of notes whose pitch changed by 4 or more semitones 18 the number of notes whose pitch changed by less than 4 semitones
19 the number of notes whose pitch changed by 4 or more semitones
(In event of a chords the maximum pitches are compared.) (In event of a chords the maximum pitches are compared.)
.PP .PP
After processing all the individual tracks, the following information After processing all the individual tracks, the following information

View File

@@ -6,7 +6,7 @@ abc2abc version 2.22 April 30 2024
yaps version 1.94 April 30 2024 yaps version 1.94 April 30 2024
abcmatch version 1.83 February 19 2024 abcmatch version 1.83 February 19 2024
midicopy version 1.39 November 08 2022 midicopy version 1.39 November 08 2022
midistats version 0.95 June 18 2024 midistats version 0.96 July 26 2024
24th January 2002 24th January 2002
Copyright James Allwright Copyright James Allwright

View File

@@ -17,7 +17,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#define VERSION "0.95 June 18 2024 midistats" #define VERSION "0.96 July 26 2024 midistats"
/* midistrats.c is a descendent of midi2abc.c which was becoming to /* midistrats.c is a descendent of midi2abc.c which was becoming to
large. The object of the program is to extract statistical characterisitic large. The object of the program is to extract statistical characterisitic
@@ -740,6 +740,7 @@ for (i=1;i<17;i++) {
if (i != 10) printf("%d %d ",trkdata.notemeanpitch[i], trkdata.notelength[i]); if (i != 10) printf("%d %d ",trkdata.notemeanpitch[i], trkdata.notelength[i]);
else else
printf("-1 0 "); printf("-1 0 ");
printf("%d ",trkdata.pitchbend[i]); /* [SS] 2024-07-26 */
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 %d ",trkdata.quietTime[i],trkdata.rhythmpatterns[i]); printf("%d %d ",trkdata.quietTime[i],trkdata.rhythmpatterns[i]);
if (i != 10) {printf("%d %d %d %d %d",trkdata.notepitchmin[i], trkdata.notepitchmax[i] ,trkdata.notelengthmin[i], trkdata.notelengthmax[i], trkdata.numberOfGaps[i]); if (i != 10) {printf("%d %d %d %d %d",trkdata.notepitchmin[i], trkdata.notepitchmax[i] ,trkdata.notelengthmin[i], trkdata.notelengthmax[i], trkdata.numberOfGaps[i]);