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 and print results.
Analyses are 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.
In principle, there are two different strategies how to treat
ornaments: expanding and clustering.
That is controlled by completelyExpandOrnaments.
But the currently implemented core analysis method does ONLY SUPPORT
expanding. FIXME
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classAnalyse all voice data for chromatic progessions and splits.(package private) classStands for one recognized chromatic progression.(package private) classCommon superclass for both phenomena.(package private) classStands for one recognized diatonic split.(package private) classFind concurrent ornaments.(package private) static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionMaps movement to maximum found value of adjacent accidentals.Maps movement to sub-category of progression.(package private) Map<Integer, List<Statistics.ChromEffect>> Per movement: list of recognized chromatic phemomena, sorted by time.static final booleanWhether to use full temporal ornament expansion, and not clustering.Maps all synthetic events from ornament expansion to the original note which carries the ornament symbol.(package private) final Formplan_fuge[]Formplans by cp.(package private) static final StringAux constantMaps movement to summarized value of coincident progressions.Maps movement to summarized value of the maximal distance between all adjacent accidentqls.static final ModifiersTscore configuration for parsing the score data.(package private) final MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> Central message receiver for error messages and loggs.Maps movement to maximum found value of FIXME DOC .Maps movement to sub-category of progression.Maps movement to sub-category of progression.Maps movement to sub-category of progression.Maps movement to sub-category of progression.(package private) final Score_cwn[]Parsed score by cp, ornaments possibly by later processing expanded.(package private) final Map<Statistics.DiatonicSplit, Statistics.PositionInOrnament> Maps movement to sub-category of progression.(package private) static final StringAux constant(package private) final TimeScape[]Parsed time scape by cp. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringadditiveName(double tp) Convert timepoint arguemnt into a readable rational notation.(package private) voidCategorize the chromatic progressions wrt synchronicity with others.(package private) voidevalSyncChanges(int cp, Set<Statistics.ChromaticChange> syncs) Do analysis of all synchronuous chromatic progressions at a particular timepoint, as stored in the input set »syncs«.(package private) void(package private) voidLoad all movements into raw data, CWN scores, and formplan data.static voidApplication entry point.(package private) StringmarkLimit(int value, int threshold) voidExecutes all payload methods and analyses.voidPrint a list of source text ornaments.voidPrint out all appearing pitch classes.(package private) voidPrint the uncompressed lists of chromatic phenomena to one or more LaTeX source files per movement.(package private) voidPrint a separating horizontal line between the groups of analysis results.voidLoad all data and find and print different kinds of "false relations." Can work in two modes:
(a) expand ornaments to diatonic clusters.(package private) voidWrite to LaTeX source file "cp11progs.tex".(package private) voidspecial11X(PrintStream ps, List<Statistics.ChromEffect> syncs) (package private) voidPrint a survey table with one line of details for each found diatonic split into the LaTeX source file "splitTable.tex", plus few lines of important overall (negative) properties.voidPrint out the sensible theme representation modes.
-
Field Details
-
msg
Central message receiver for error messages and loggs. Since there are no user interactions, errors can come only from inconsistent input data and thus should all be eliminated. -
modifiers
Tscore configuration for parsing the score data. -
timeScapes
Parsed time scape by cp. (Index is movement number, index==0 not used.) -
scores
Parsed score by cp, ornaments possibly by later processing expanded. (Index is movement number, index==0 is not used.) -
formplans
Formplans by cp. (Index is movement number, index==0 is not used.) -
chromEffectsByCp
Map<Integer,List<Statistics.ChromEffect>> chromEffectsByCpPer 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
Maps all synthetic events from ornament expansion to the original note which carries the ornament symbol. -
adjacentAccs
Maps movement to maximum found value of adjacent accidentals. -
maxDists
Maps movement to summarized value of the maximal distance between all adjacent accidentqls. -
split2positionInOrnament
-
completelyExpandOrnaments
public static final boolean completelyExpandOrnamentsWhether to use full temporal ornament expansion, and not clustering.(Currently the core analysis requires true.!)
- See Also:
-
multipleWks
Maps movement to maximum found value of FIXME DOC . -
maxCoinProgr
Maps movement to summarized value of coincident progressions. -
pureStep
Maps movement to sub-category of progression. -
stepPlusMore
Maps movement to sub-category of progression. -
pseudoSteps
Maps movement to sub-category of progression. -
pseudoStepsMore
Maps movement to sub-category of progression. -
augOct
Maps movement to sub-category of progression. -
querstände
Maps movement to sub-category of progression. -
HLINE
Aux constant- See Also:
-
thresholdPrefix
Aux constant- See Also:
-
cp11sumsUp
-
cp11sumsDown
-
cp11sums
-
-
Constructor Details
-
Statistics
public Statistics()
-
-
Method Details
-
loadAllScores
void loadAllScores()Load all movements into raw data, CWN scores, and formplan data. -
printSeparator
Print a separating horizontal line between the groups of analysis results. -
themeRepresentationModes
public void themeRepresentationModes()Print out the sensible theme representation modes. Input is the formplan data. Printing goes to std out. -
pitchClasses
public void pitchClasses()Print out all appearing pitch classes. Printing goes to std out. -
ornaments
public void ornaments()Print a list of source text ornaments. For each cp: for each ornament name: a sorted list of time points. ATTENTION: When calling, Score_cwn has already added all editor's additions "artikHRSG". Printing goes to std out. -
additiveName
Convert timepoint arguemnt 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 source files per movement. -
evalSyncChanges
Do analysis of all synchronuous chromatic progressions at a particular timepoint, as stored in the input set »syncs«.Increment pureStep, stepPlusMore, pseudoSteps, augOct, and querstände for the most significant progression per GPC. Set maxCoinProgr to number of coincident progressions per GPC, if larger than the old value. Increment multipleWks if number of GPCs is more than one.
-
markLimit
-
chromatics2
Categorize the chromatic progressions wrt synchronicity with others. Input data are the chromatic phenomena collected inchromEffectsByCp. Results are printed directly to the LaTeX source file "secondLevelStatistics.tex"."- Throws:
FileNotFoundException
-
splitTable
Print a survey table with one line of details for each found diatonic split into the LaTeX source file "splitTable.tex", plus few lines of important overall (negative) properties.- Throws:
FileNotFoundException
-
special11
Write to LaTeX source file "cp11progs.tex".- Throws:
FileNotFoundException
-
special11X
-
nonStaticMain
Executes all payload methods and analyses.- Throws:
FileNotFoundException
-
main
Application entry point. Constructs an instance and invokes its payload method.- Throws:
FileNotFoundException
-