From 4c571ebe65be12849193456081d25e92e5d89d7a Mon Sep 17 00:00:00 2001 From: sshlien Date: Fri, 26 Jul 2024 16:48:42 -0400 Subject: [PATCH] 2024.07.26 --- VERSION | 2 +- doc/midistats.1 | 39 ++++++++++++++++++++------------------- doc/readme.txt | 2 +- midistats.c | 3 ++- 4 files changed, 24 insertions(+), 22 deletions(-) diff --git a/VERSION b/VERSION index 9ebf9b2..7d18349 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -June 18 2024 +July 26 2024 diff --git a/doc/midistats.1 b/doc/midistats.1 index 478707f..ba7095c 100644 --- a/doc/midistats.1 +++ b/doc/midistats.1 @@ -36,25 +36,26 @@ number. .PP trkinfo is an array of 19 numbers which indicates the statistical properties of the track of interest. The following data is given: -the channel number, -the first program assigned to this channel, -the number of notes for this channel counting any chords as one note, -the total number of notes for this for this channel, -the sum of the MIDI pitches for all the notes, -the sum of the note durations in MIDI pulse units, -the number of control parameter messages, -the number of pressure messages. -the number of distinct rhythm patterns for each channel -the number of pulses the channel was inactive -the minimum pitch value -the maximum pitch value -the minimum note length in pulses -the maximum note length in pulses -the number of gaps in the channel -the entropy of the pitch class histogram for that channel -the number of notes whose pitch were the same as the previous note -the number of notes whose pitch changed by less than 4 semitones -the number of notes whose pitch changed by 4 or more semitones +0 the channel number, +1 the first program assigned to this channel, +2 the number of notes for this channel counting any chords as one note, +3 the total number of notes for this for this channel, +4 the sum of the MIDI pitches for all the notes, +5 the sum of the note durations in MIDI pulse units, +6 the number of pitchbend messages, +7 the number of control parameter messages, +8 the number of pressure messages. +9 the number of distinct rhythm patterns for each channel +10 the number of pulses the channel was inactive +11 the minimum pitch value +12 the maximum pitch value +13 the minimum note length in pulses +14 the maximum note length in pulses +15 the number of gaps in the channel +16 the entropy of the pitch class histogram for that channel +17 the number of notes whose pitch were the same as the previous note +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.) .PP After processing all the individual tracks, the following information diff --git a/doc/readme.txt b/doc/readme.txt index bd84cf9..7d82c18 100644 --- a/doc/readme.txt +++ b/doc/readme.txt @@ -6,7 +6,7 @@ abc2abc version 2.22 April 30 2024 yaps version 1.94 April 30 2024 abcmatch version 1.83 February 19 2024 midicopy version 1.39 November 08 2022 -midistats version 0.95 June 18 2024 +midistats version 0.96 July 26 2024 24th January 2002 Copyright James Allwright diff --git a/midistats.c b/midistats.c index f41361f..6323bc5 100644 --- a/midistats.c +++ b/midistats.c @@ -17,7 +17,7 @@ * 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 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]); else 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.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]);