Class Statistics.Analyzer

java.lang.Object
eu.bandm.tscore.base.SyncEventsDouble
eu.bandm.music.applications.myKdF.Statistics.Analyzer
Enclosing class:
Statistics

class Statistics.Analyzer extends SyncEventsDouble
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 Details

    • voices

      final ArrayList<Vox> voices
      All loaded voices.
    • score

      final Score_cwn score
      The current score, needed for further information on events.
    • movement

      final int movement
      The movement number, needed for print-out of results.
    • ceList

      The constructed result. Will finally be stored in the external map Statistics.chromEffectsByCp.
    • ornamentExpansion

      For clustering mode: maps events to all pitches of its ornamente's expansion.
    • adjacentAccidentals

      int adjacentAccidentals
      Register to count the max value on the fly, of the number of different accidentals synchronuous or adjacent.
    • maxDistance

      int maxDistance
      Register to count the max value on the fly, of the distance between all adjacent accidentqls.
    • lastSplits

      Diatonic splits of the preceding step, to link back the right-side framing events.
  • Constructor Details

  • Method Details

    • addVoice

      public void addVoice(Vox voice)
    • addAllWhitekeys

      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.
    • getPitch

      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

      void memoAccidental(Multimap<WhiteKeyModOctave,Accidental> map, Event e)
      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

      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).
    • process

      public void process(double tp)
      Make one analysis step for the given timepoint.
      Specified by:
      process in class SyncEventsDouble