public class MaWiRic extends SvgSource
sig/examples/tscore/mawiric1.tscore
.
The score has two synchronuous voices, one for switch-on events and a second for
switch-off events. Both voices have only their main parameter
(see Event.main_parameter_name
).
Switch-on events are given by line and column and apply to this coordinate.
Switch-off events are given by character content and apply to all these characters.
In the form used in the prototype, there is a first phase of switch-on,
and a second of switch-off, both slightly accelerating. Only the former
contains synchronuous events.
Despite being very simple, there is a whole bunch of consistency constraints:
[text opacity='0.0' x='..' y='..7']Z [set attributeType='XML' attributeName='opacity' to='1.0' begin='SWITCH-ON-TIME'/] [set attributeType='XML' attributeName='opacity' to='0.0' begin='SWITCH-OFF-TIME'/] [/text]Further variants are possible, but not implemented:
SvgSource
. The methods update()
and
convertData()
are called and must be defined.
SvgSource.ParamTranslate, SvgSource.Process
Modifier and Type | Field and Description |
---|---|
(package private) Translet.Parser<String> |
asciiLowerCaseChar
Parser for the switch-off events.
|
static Character |
BLANK
Evident
|
(package private) Multimap<Event,Tuple2<Integer,Integer>> |
event2start
Result of parsing the switch-on events, indicate when a particular matrix position/
set of matrix positions appears.
|
(package private) Multimap<Event,String> |
event2stopChar
Result of parsing the switch-off events, indicate when a particular character/
set of characters vanishes.
|
(package private) Translet.Parser<?> |
parse_off
Parser for the switch-off events.
|
(package private) Translet.Parser<?> |
parse_on
Parser for the switch-on events.
|
static String[] |
textData
The text data which shall appear on the screen, in exactly this matrix arragenment.
|
static String |
VOICENAME_off |
static String |
VOICENAME_on |
Constructor and Description |
---|
MaWiRic(Part part,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
Only constructor for this tscore data processors, found and instantiated
by
MfMain by reflection. |
Modifier and Type | Method and Description |
---|---|
protected void |
convertData()
Generate SVG file, using auxiliary functions and called by superclass
SvgSource . |
static boolean |
isBlank(char c)
Evident
|
void |
update()
Translate untyped tscore data into semantically sensible "MaWiRic" data.
|
alpha2string, animateString_tp, animateString, animateTransformString, check_init_def, color2string, convertToSvg, height2device, height2device, printAlpha, printColor, setString, tp2device, when2device, width2device, width2device, x2device, y2device
public static final String VOICENAME_on
public static final String VOICENAME_off
final Multimap<Event,String> event2stopChar
final Translet.Parser<String> asciiLowerCaseChar
final Multimap<Event,Tuple2<Integer,Integer>> event2start
final Translet.Parser<?> parse_on
final Translet.Parser<?> parse_off
public static String[] textData
public static final Character BLANK
public MaWiRic(Part part, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
MfMain
by reflection.public void update()
public static boolean isBlank(char c)
protected void convertData()
SvgSource
.convertData
in class SvgSource