Skip to content

Commit

Permalink
Starting summary2().
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonHD committed Jun 21, 2024
1 parent 0e7a4c3 commit 31813f5
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion javasrc/org/hd/d/statsHouse/feedHits/GenerateSummary.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ public static MIDITune summary(final int summaryType, final List<String> dirname

return switch (summaryType) {
case 1 -> (summary1(dirnames));
case 2 -> (summary2(dirnames));
default -> throw new IllegalArgumentException("unknown summary type " + summaryType);
};
}

/**Summary type 1; by-hour data blocks. */
/**Summary type 1; by-hour data blocks percussion. */
public static MIDITune summary1(final List<String> dirnames) throws IOException
{
final FeedStatusBlocks fsbs = FeedStatusBlocks.loadStatusByHourFromDirs(dirnames);
Expand Down Expand Up @@ -188,4 +189,18 @@ public static MIDITune summary1(final List<String> dirnames) throws IOException
final TuneSectionPlan tsp = null;
return(new MIDITune(dataMelody, supportTracks, tsp, dv));
}


/**Summary type 2; by-hour data blocks percussion and some trend melody. */
public static MIDITune summary2(final List<String> dirnames) throws IOException
{
// final FeedStatusBlocks fsbs = FeedStatusBlocks.loadStatusByHourFromDirs(dirnames);

// Take type 1 and add some melody to it...
final MIDITune percussion = summary1(dirnames);

// TODO: melody!

return(percussion);
}
}

0 comments on commit 31813f5

Please sign in to comment.