Package eu.bandm.music.top
Class MaWiCM
java.lang.Object
eu.bandm.music.top.SvgSource
eu.bandm.music.top.MaWiCM
Translation of tscore source according to
"Mathias Wittekopf/Vorübergehende Zustände/Sätze 1,3,5,7,9 ("ClockMusic" or "Interlude");
see ohrwelt.de.
The main example score is
The original has been constructed by MW, manually, by clicking, using "adobe image ready".
The original contains a final MOVEMENT of all numbers from "one" to "twelve" to the corresponding clock dial position. The intended syntax is "/" and "''y.y", but it is NOT YET IMPLEMENTED FIXME
Code generation scheme for each text event / word:
The main example score is
sig/examples/tscore/mawicm1.tscore
.
Generates a dynamic SVG with a matrix of words in a rectangular grid,
which are made visible and invisible again, all individually and controlled by the score.
Switch-on events are given by xpos, ypos, text.
Switch-off events are by ">" and "!", delimiting the fade out process.
Example:
T 0 5 6 7 VOX dass 'daß'1,1 > - !makes "daß" appear at 5 seconds, start to fade at 5.5 seconds and be vanished at 7 seconds. (The event "-" is a "no-operation" / "just continue" type of event.)
The original has been constructed by MW, manually, by clicking, using "adobe image ready".
The original contains a final MOVEMENT of all numbers from "one" to "twelve" to the corresponding clock dial position. The intended syntax is "/" and "''y.y", but it is NOT YET IMPLEMENTED FIXME
Code generation scheme for each text event / word:
[text opacity='0.0' x='..' y='..']TEXT [set attributeType='XML' attributeName='opacity' to='1.0' begin='SWITCH_ON_TIME'/] [animate attributeType='XML' attributeName='opacity' from='1.0' to='0.0' begin='START_FADE_OUT_TIME' dur='END_FADE_OUT_TIME-START_FADE_OUT_TIME' /] --or-- [set attributeType='XML' attributeName='opacity' to='1.0' begin='END_FADE_OUT_TIME'/] [/text]
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.music.top.SvgSource
SvgSource.ParamTranslate, SvgSource.Process
-
Field Summary
Modifier and TypeFieldDescriptionIn case that an event carries the "end fade" operator "!".Derived map, maps text event to its related end fade event.In case that an event carries the "start fade" operator ">".Derived map, maps text event to its related start fade event.EvidentEvidentEvident(package private) final Translet.Parser<?>
Parses all combinations: text plus start fade, or start fade only, or end fade, or "nop".(package private) final Translet.Parser<?>
Parses text and coordinates.(package private) final Translet.Parser<?>
Parses start fade symbol. -
Constructor Summary
ConstructorDescriptionMaWiCM
(Part part, MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg) Only constructor for this tscore data processors, found and instantiated byMfMain
by reflection. -
Method Summary
Methods inherited from class eu.bandm.music.top.SvgSource
alpha2string, animateString, animateString_tp, animateTransformString, check_init_def, color2string, convertToSvg, height2device, height2device, printAlpha, printColor, setString, tp2device, when2device, width2device, width2device, x2device, y2device
-
Field Details
-
event2xpos
Evident -
event2ypos
Evident -
event2text
Evident -
event2startFade
In case that an event carries the "start fade" operator ">". -
event2endFade
In case that an event carries the "end fade" operator "!". -
event2startFadeTime
Derived map, maps text event to its related start fade event. -
event2endFadeTime
Derived map, maps text event to its related end fade event. -
parse_start
Parses text and coordinates. -
parse_startFade
Parses start fade symbol. -
parse_all
Parses all combinations: text plus start fade, or start fade only, or end fade, or "nop".
-
-
Constructor Details
-
MaWiCM
public MaWiCM(Part part, MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg) Only constructor for this tscore data processors, found and instantiated byMfMain
by reflection.
-
-
Method Details
-
update
public void update()Translate untyped tscore data into semantically sensible "MaWiCM" data. This method reads the event lists contained in TimeScape->voices->bySourceOrder and writes to all the local Map and Set output data declared locally. -
convertData
protected void convertData()Generate SVG file, using auxiliary functions and called by superclassSvgSource
.- Specified by:
convertData
in classSvgSource
-