Class Formplan_fuge

java.lang.Object
eu.bandm.music.top.Formplan_fuge

public class Formplan_fuge extends Object
  • Field Details

    • msg

      final MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg
      Evident.
    • msgNoLoc

      final MessageReceiver<SimpleMessage<?>> msgNoLoc
      FIXME RAUS
    • thForm

      protected Map<Event,Formplan_fuge.ThForm> thForm
      Recognized theme forms, by the starting event.
    • inverse

      protected Map<Event,String> inverse
      Whether the theme starting at the event is an inverse.
    • incomplete

      protected Map<Event,String> incomplete
      Whether the theme starting at the event is incomplete.
    • retro

      protected Map<Event,String> retro
      Whether the theme starting at the event runs in retrograde.
    • freemat

      protected Map<Event,String> freemat
      Whether the theme starting at this event is free counterpoint material. This is indicated by an "X" in the tscore source, and rendered by the line type "0".
    • cpEinsatz

      protected Map<Event,Integer> cpEinsatz
      Whether the theme starting at this event is numbered counterpoint material. This is indicated by a "1" to "9" in the tscore source, and rendered by the line type of this number.
    • factor

      protected Map<Event,Rational> factor
      A time stretch factor assigned to the theme starting at this event. (This info is currently not represented in the graphical rendering.)
    • prolongate

      protected Map<Event,String> prolongate
      DOCME
    • pause

      protected Map<Event,String> pause
      DOCME
    • divMul

      public final Translet.Parser<?> divMul
      Parser for the time stretch factor.
    • kpEinsatz

      public final Translet.Parser<?> kpEinsatz
      Parser for contrapunctal material.
    • themenEinsatzForm

      public final Translet.Parser<?> themenEinsatzForm
      Parser which accepts capital roman numbers for theme numbers, "D" and "C" for dux and comes, or a combination of both. (Currently all this information is not reflected in the graphical rendering!)
    • themenEinsatz

      public final Translet.Parser<?> themenEinsatz
      Parser which accepts additional modifiers: "u" for inverse, "r" for retrograde, "1/n" or "n/1" for time stretching, and ">" for incompleteness.
    • einsatz_parser

      public final Translet.Parser<?> einsatz_parser
      Parser which accepts theme and counterpoints.
    • part

      final Part part
      The tscore input data.
    • voicename_tonal_key

      @Opt final @Opt String voicename_tonal_key
      The name of the global voice which give the current tonal key. (This info is currently not represented in the graphical rendering, but used only to ignore this voice.)
    • modifiers

      static final Modifiers modifiers
      Modifiers for the different phases of the parsing process.
    • tp2barnum

      final Map<TpTop,BigInteger> tp2barnum
      Evident
    • barnum2tp

      final SortedMap<BigInteger,TpTop> barnum2tp
      Evident
    • lastTp

      Tp lastTp
      The very last time point in the score input data: no event starts here, but all last events end.
    • tp2rat

      final Map<Tp,Rational> tp2rat
      Evident
    • rat2tp

      final SortedMap<Rational,Tp> rat2tp
      Evident
    • event2endtp

      final Map<Event,Tp> event2endtp
      Evident
    • soundVoices

      public final List<Vox> soundVoices
      List of all voices, in source order, without the "global current tonal key" voice.
    • factors

      final SortedSet<Rational> factors
      DOCME
    • themen

      int themen
      DOCME
    • maxType

      int maxType
      DOCME
    • routingPlan

      final Map<Event,Integer> routingPlan
  • Constructor Details

    • Formplan_fuge

      public Formplan_fuge(Part part, MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg, @Opt @Opt String voicename_tonal_key)
      Only constructor.
      Parameters:
      part - the tscore data
      msg - drain for all messages
      voicename_tonal_key - the name of the voice which contains the current tonal key, changing along the time axis
  • Method Details

    • voiceIsGlobal

      protected boolean voiceIsGlobal(Vox v)
      Whether this voice is the global "current tonal key" voice.
    • getTypeNames

      @Opt public @Opt List<String> getTypeNames()
      DOCME
    • update

      public void update()
      Translate untyped tscore data into semantically sensible "fugue form plan" attribute collection. This method reads the event lists contained in TimeScape->voices->events, ordered by time point, and writes to all the local Map and Set output data declared locally.
    • makeSigRoutingPlan

      public Formplan_fuge.SigRoutingPlan makeSigRoutingPlan(float tempo)
      DOCME
    • showGraphic

      protected void showGraphic()
      Construct a graphic representation from the input data in the score object part. The x factor can be given be the timeless meta data in the part object. Then the graphic is shown in a popping up Swing window.
    • addEvent

      protected void addEvent(Event e, int shift, float xfactor, Print_Plan_3d printer, int kind)
      Add one event to the Print_Plan_3d list of graphical representations.
      Parameters:
      e - the event, its start and its end time are needed
      shift - a global correction value for the case that the data to render is an excerpt, starting with a higher measure number.
      xfactor - evident
      printer - the graphical object
      kind - currently only relevant for counterpoint material, selects the graphical appearance of the line, see Print_Plan_3d.
    • main

      public static void main(String[] args)
      Test method, translates input file "arg[0]" to a graphical form plan of a fugue, or sim. Then it is shown in a popping up Swing window.