From 5175fc699e1243420492a615531ca7089a2a016e Mon Sep 17 00:00:00 2001 From: sshlien Date: Tue, 5 Mar 2024 17:31:40 -0500 Subject: [PATCH] 2024.03.05 --- VERSION | 2 +- doc/midistats.1 | 7 ++++++- doc/readme.txt | 2 +- midistats.c | 11 +++++++---- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 89e8a23..54d0a62 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -March 03 2024 +March 05 2024 diff --git a/doc/midistats.1 b/doc/midistats.1 index 6b9c5d4..6bf19d0 100644 --- a/doc/midistats.1 +++ b/doc/midistats.1 @@ -120,7 +120,12 @@ zeros.) In the case same channel occurs in several tracks, these numbers are the totals for all track containing that channel. Here is a description of these properties. .PP -nnotes: the total number of notes in each channel +programs: channel to midi program mapping +.PP +cnotes: the total number of notes in each channel +.PP +nnotes: the number of notes in each channel not including +those playing in the same time interval. .br nzeros: the number of notes whose previous note was the same pitch .br diff --git a/doc/readme.txt b/doc/readme.txt index cfc479c..a27f230 100644 --- a/doc/readme.txt +++ b/doc/readme.txt @@ -6,7 +6,7 @@ abc2abc version 2.21 February 19 2024 yaps version 1.93 February 19 2024 abcmatch version 1.83 February 19 2024 midicopy version 1.39 November 08 2022 -midistats version 0.87 February 11 2024 +midistats version 0.88 March 05 2024 24th January 2002 Copyright James Allwright diff --git a/midistats.c b/midistats.c index 9fb7a09..e3ab543 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.87 February 11 2024 midistats" +#define VERSION "0.88 March 05 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 @@ -1345,8 +1345,12 @@ printf("\n"); void outputChannelSummary() { int i; -for (i=0;i<17;i++) { - printf("nnotes: "); + + printf("\nprograms: "); + for(i=1;i<17;i++) printf(" %d",channel2prog[i]); + printf("\ncnotes: "); + for(i=1;i<17;i++) printf(" %d",channel2nnotes[i]); + printf("\nnnotes: "); for(i=0;i<16;i++) printf(" %d",nm[i].totalNotes); printf("\nnzeros: "); for(i=0;i<16;i++) printf(" %d",nm[i].zeroCount); @@ -1360,7 +1364,6 @@ for (i=0;i<17;i++) { /* avoid dividing by 0 */ for(i=0;i<16;i++) printf(" %d",nm[i].totalPitches/(1+nm[i].totalNotes)); printf("\n"); - } } void dualDrumPattern (int perc1, int perc2) {