Class Statistics.Analyzer
java.lang.Object
eu.bandm.tscore.base.SyncEventsDouble
eu.bandm.music.applications.myKdF.Statistics.Analyzer
- Enclosing class:
Statistics
Can operate in two different modes:
(a) on unresolved ornaments, their pitches entered into diatonic clusters.
(b) on a score with conventionally resolved ornaments.
Results are stored in the external maps
Statistics.chromEffectsByCp
,
Statistics.adjacentAccs
, etc.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
Register to count the max value on the fly, of the number of different accidentals synchronuous or adjacent.(package private) final List
<Statistics.ChromEffect> The constructed result.(package private) Map
<WhiteKeyModOctave, Statistics.DiatonicSplit> Diatonic splits of the preceding step, to link back the right-side framing events.(package private) int
Register to count the max value on the fly, of the distance between all adjacent accidentqls.(package private) final int
The movement number, needed for print-out of results.(package private) final Multimap
<Event, PitchAndOctave<OctaveRegister, FunctionalPitchModOctave>> For clustering mode: maps events to all pitches of its ornamente's expansion.(package private) final Score_cwn
The current score, needed for further information on events.All loaded voices.Fields inherited from class eu.bandm.tscore.base.SyncEventsDouble
allTps, atLeastOneEventStartsHere, countVoices, currentEvent, ignoreEvent, iterators, loaded, nextEvent, nextNormalized, normalize, previousEvent, startsHere
-
Constructor Summary
ConstructorsConstructorDescriptionAnalyzer
(Score_cwn score, int movement, int capacity, Multimap<Event, PitchAndOctave<OctaveRegister, FunctionalPitchModOctave>> ornamentExpansion) -
Method Summary
Modifier and TypeMethodDescription(package private) void
addAllWhitekeys
(Set<WhiteKeyModOctave> wks, Event ev) Add all GPCs for the event to the given target set, either directly or from the expanded ornament.void
(package private) int
countOrnaments
(Event ev) Deliver 0 or 1, when the event carries an ornament symbol or is the expansion of another event (with ornament symbol).(package private) @Opt PitchAndOctave
<OctaveRegister, FunctionalPitchModOctave> getPitch
(Event ev, WhiteKeyModOctave wk) Get the pitch for the event and the given GPC, either directly or from the expanded ornament.(package private) void
Memorize in the map the accidental (max 1) for all GPCs occuring in the given event.void
process
(double tp) Make one analysis step for the given timepoint.Methods inherited from class eu.bandm.tscore.base.SyncEventsDouble
addVoice, apply, loadCache, oneStep
-
Field Details
-
voices
All loaded voices. -
score
The current score, needed for further information on events. -
movement
final int movementThe movement number, needed for print-out of results. -
ceList
The constructed result. Will finally be stored in the external mapStatistics.chromEffectsByCp
. -
ornamentExpansion
For clustering mode: maps events to all pitches of its ornamente's expansion. -
adjacentAccidentals
int adjacentAccidentalsRegister to count the max value on the fly, of the number of different accidentals synchronuous or adjacent. -
maxDistance
int maxDistanceRegister to count the max value on the fly, of the distance between all adjacent accidentqls. -
lastSplits
Map<WhiteKeyModOctave,Statistics.DiatonicSplit> lastSplitsDiatonic splits of the preceding step, to link back the right-side framing events.
-
-
Constructor Details
-
Analyzer
Analyzer(Score_cwn score, int movement, int capacity, Multimap<Event, PitchAndOctave<OctaveRegister, FunctionalPitchModOctave>> ornamentExpansion)
-
-
Method Details
-
addVoice
-
addAllWhitekeys
Add all GPCs for the event to the given target set, either directly or from the expanded ornament. -
getPitch
@Opt @Opt PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> getPitch(Event ev, WhiteKeyModOctave wk) Get the pitch for the event and the given GPC, either directly or from the expanded ornament. Assume that only one pitch exists (= ornament expansion is not wide as an octave). -
memoAccidental
Memorize in the map the accidental (max 1) for all GPCs occuring in the given event. Value(s) may come directly from the single note or from an ornament expanded to a diatonic cluster. -
countOrnaments
Deliver 0 or 1, when the event carries an ornament symbol or is the expansion of another event (with ornament symbol). -
process
public void process(double tp) Make one analysis step for the given timepoint.- Specified by:
process
in classSyncEventsDouble
-