Class SvgSource.Process

java.lang.Object
eu.bandm.music.top.SvgSource.Process
Enclosing class:
SvgSource

abstract class SvgSource.Process extends Object
Visits all events of a given iterator pairwise and prepares time and interpolation values.
  • Field Details

    • data

      final Iterable<Event> data
    • ipoltable

      @Opt protected final @Opt Map<Event,String> ipoltable
      The event parameters "interpolation mode", if present.
    • predecTime

      protected double predecTime
      The onset time point of the earlier event currently under visit.
    • currentTime

      protected double currentTime
      The onset time point of the later event currently under visit.
    • ipol

      protected boolean ipol
      Whether the earlier event has a "interpolate" flag set in its tscore source.
  • Constructor Details

    • Process

      public Process(Iterable<Event> it, @Opt @Opt Map<Event,String> ipoltable)
      Only constructur, FIXME sets up all parameters for the execution by process().
      Parameters:
      it - iterable, normally related to one single voice, e.g. from voiceEvents(v, range_respectingDomainOrder(rat2tp)) or sim.
      ipoltable - gives for each event the interpolation mode to the subsequent value, in a symbolic text form.
  • Method Details

    • process

      public void process()
    • time

      protected double time(Event e)
      Get the onset time of the event according to the calendearic time data in the score.
    • first

      public void first(Event e)
    • pairwise

      public void pairwise(Event predec, Event current)
      Here: prepare the registers ipol and currentTime.