Class Statistics

java.lang.Object
eu.bandm.music.applications.myKdF.Statistics

@ResourceDependency({"data-dir/cp01.cwn","data-dir/cp02.cwn","data-dir/cp03.cwn","data-dir/cp04.cwn","data-dir/cp05.cwn","data-dir/cp06.cwn","data-dir/cp07.cwn","data-dir/cp08.cwn","data-dir/cp09.cwn","data-dir/cp10.cwn","data-dir/cp11.cwn","data-dir/cp12.cwn","data-dir/cp13.cwn","data-dir/cp14.cwn","data-dir/cp15.cwn","data-dir/cp16.cwn","data-dir/cp17.cwn","data-dir/cp18.cwn"}) public class Statistics extends Object
Analyse the tscore model of Die Kunst der Fuge for pitch classes, ornaments, false relations, diatonic splits, sensible theme representation modes, etc. Partly the results are printed to System.out. Others are formatted as LaTeX source and printed to files.
  • Field Details

    • msg

      Central message receiver for error messages and loggs. Since their is not user interactions, errors can come only from inconsistent input data and thus should all be eliminated.
    • modifiers

      public static final Modifiers modifiers
      Tscore configuration for parsing the score data.
    • timeScapes

      final TimeScape[] timeScapes
      Parsed time scape by cp. (Index is movement number, index==0 not used.)
    • scores

      final Score_cwn[] scores
      Parsed score by cp, ornaments possibly by later processing expanded. (Index is movement number, index==0 is not used.)
    • formplans

      final Formplan_fuge[] formplans
      Formplans by cp. (Index is movement number, index==0 is not used.)
    • chromEffectsByCp

      Per movement: list of recognized chromatic phemomena, sorted by time. For a diatonic split that is the start time of both conflicting events; for a chromatic progression it is the time point of the later event.
    • expanded2original

      Map<Event,Event> expanded2original
      Maps all synthetic events from ornament expansion to the original note which carries the ornament symbol.
    • adjacentAccs

      Map<Integer,Integer> adjacentAccs
      Maps movement to maximum found value of adjacent accidentals.
    • maxDists

      Map<Integer,Integer> maxDists
      Maps movement to summarized value of the maximal distance between all adjacent accidentqls.
    • completelyExpandOrnaments

      public static final boolean completelyExpandOrnaments
      Whether to use full temporal ornament expansion, and not clustering.
      See Also:
    • multipleWks

      Map<Integer,Integer> multipleWks
      Maps movement to maximum found value of FIXME DOC .
    • maxCoinProgr

      Map<Integer,Integer> maxCoinProgr
      Maps movement to summarized value of coincident progressions.
    • pureStep

      Map<Integer,Integer> pureStep
      Maps movement to sub-category of progression.
    • stepPlusMore

      Map<Integer,Integer> stepPlusMore
      Maps movement to sub-category of progression.
    • pseudoSteps

      Map<Integer,Integer> pseudoSteps
      Maps movement to sub-category of progression.
    • pseudoStepsMore

      Map<Integer,Integer> pseudoStepsMore
      Maps movement to sub-category of progression.
    • augOct

      Maps movement to sub-category of progression.
    • querstände

      Map<Integer,Integer> querstände
      Maps movement to sub-category of progression.
    • HLINE

      static final String HLINE
      Aux constant
      See Also:
  • Constructor Details

    • Statistics

      public Statistics()
  • Method Details

    • loadAllScores

      void loadAllScores()
      Load all movements into raw data, CWN scores, and formplan data.
    • printSeparator

      void printSeparator(PrintStream out)
    • themeRepresentationModes

      public void themeRepresentationModes()
      Read the formplan data and print out the sensible theme representation modes.
    • pitchClasses

      public void pitchClasses()
      Print out all appearing pitch classes.
    • ornaments

      public void ornaments()
      Print a list of source text ornaments, by cp and ornament name: a sorted list of time points. ATTENTION: Score_cwn in its current version has already added all editor's additions "artikHRSG".
    • additiveName

      String additiveName(double tp)
      COnvert into a readable rational notation.
    • findConcurrentOrnaments

      void findConcurrentOrnaments()
    • querstaende

      public void querstaende()
      Load all data and find and print different kinds of "false relations." Can work in two modes:
      (a) expand ornaments to diatonic clusters.
      (b) expand ornaments the "normal way" to event sequences.

      Attention: When version (b) is active, the scores are CHANGED TO EXPANDED ORNAMENTS afterwards.

    • printChromatics

      void printChromatics()
      Print the uncompressed lists of chromatic phenomena to one or more LaTeX sourece files per movement.
    • evalSyncChanges

      void evalSyncChanges(int cp, Set<Statistics.ChromaticChange> syncs)
      Do analysis of all synchronuous chromatic progressions, as stored in the input set syncs.
    • chromatics2

      void chromatics2() throws FileNotFoundException
      Categorize the chromatic progressions wrt synchronicity with others. Input data are the chromatic phenomena collected in chromEffectsByCp. Results are printed directly to a LaTeX source file.
      Throws:
      FileNotFoundException
    • splitTable

      void splitTable() throws FileNotFoundException
      Print a survey table with one line of details for each found diatonic split into a LaTeX source file, plus few lines of important overall (negative) properties.
      Throws:
      FileNotFoundException
    • nonStaticMain

      public void nonStaticMain() throws FileNotFoundException
      Executes all payload methods and analyses.
      Throws:
      FileNotFoundException
    • main

      public static void main(String[] args) throws FileNotFoundException
      Application entry point. Constructs an instance and invokes its payload method.
      Throws:
      FileNotFoundException