Package eu.bandm.music.top
Class SvgSource.Process
java.lang.Object
eu.bandm.tools.util.java.Iterators.Pairwise<Event>
eu.bandm.music.top.SvgSource.Process
- Enclosing class:
- SvgSource
Visits all events of a given iterator pairwise and prepares time and interpolation values.
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
The onset time point of the later event currently under visit.protected boolean
Whether the earlier event has a "interpolate" flag set in its tscore source.The event parameters "interpolation mode", if present.protected double
The onset time point of the earlier event currently under visit.Fields inherited from class eu.bandm.tools.util.java.Iterators.Pairwise
_last, it, lit
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Can be overridden by the user to visit the very first element before the first pair is visited byIterators.Pairwise.pairwise(Object,Object)
.void
Must be overridden by the user to visit the define what to do with each pair of adjacent elements.protected double
Get the onset time of the event according to the calendearic time data in the score.Methods inherited from class eu.bandm.tools.util.java.Iterators.Pairwise
last, process
-
Field Details
-
ipoltable
The event parameters "interpolation mode", if present. -
predecTime
protected double predecTimeThe onset time point of the earlier event currently under visit. -
currentTime
protected double currentTimeThe onset time point of the later event currently under visit. -
ipol
protected boolean ipolWhether the earlier event has a "interpolate" flag set in its tscore source.
-
-
Constructor Details
-
Process
Only constructur, sets up all parameters for the execution byIterators.Pairwise.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
-
time
Get the onset time of the event according to the calendearic time data in the score. -
first
Description copied from class:eu.bandm.tools.util.java.Iterators.Pairwise
Can be overridden by the user to visit the very first element before the first pair is visited byIterators.Pairwise.pairwise(Object,Object)
.- Overrides:
first
in classeu.bandm.tools.util.java.Iterators.Pairwise<Event>
-
pairwise
Must be overridden by the user to visit the define what to do with each pair of adjacent elements. These are visited in the sequential order of the underlying Iterator. On Execution, that has berformed aIterator.next()
, so that it "points" (e.g. with itsIterator.hasNext()
to the successor of the later of both visited elements. Here: prepare the registersipol
andcurrentTime
.- Specified by:
pairwise
in classeu.bandm.tools.util.java.Iterators.Pairwise<Event>
-