public class Score_hkn_svg_v00 extends Score_hkn
main(String[])
method takes filenames and voice names from the command
line parameters.SvgSource
for ducumentation on the generation of dynamic SVG.
That class is NOT used here because this class extends Score_hkn
instead.
Score_hkn.Expansion, Score_hkn.Parameters
Modifier and Type | Field and Description |
---|---|
static String[] |
colorString
Values for colors: green/yellow/red by U,M and O.
|
static float |
fixedDuration
Duration how long each graphical state will be presented.
|
static String[] |
formEnd
Svg source text to end the graohical form, by U,M and O.
|
static String[] |
forms
Values for graphical form, by U,M and O.
|
int |
maxPause
Max index into
pauseDuras |
static float |
pauseDark
Only pause durations ABOVE this value will be dark.
|
static float[] |
pauseDuras
Durations for pauses p0..p4
|
static int[] |
poss
Values for vertical and horizontal positions by U,M and O.
|
(package private) static String |
punit
Source text for "pixel" as an appended unit string.
|
static String[] |
scaleString
Values for size, by U,M and O.
|
static int |
screensize
Upper limit of (physical) device coordinates, in "pt" = "points".
|
allMedium, barnum2tp, event2doppelHaken, event2forceOverlap_end, event2forceOverlap_start, event2haken, event2noOverlap_end, event2noOverlap_start, event2pause, event2relwert, eventCanOverlapAtStart, modifiers, msg, msgr, name, noPauseSelected, noVoiceSelected, parameters, parser, rat2tp, tp2barnum, tp2rat, tsPart
Constructor and Description |
---|
Score_hkn_svg_v00(String name,
Part ts,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
@Opt Score_hkn.Parameters parameters)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Score_hkn_svg_v00> |
fromTimeScape(TimeScape ts,
String topName,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
@Opt Score_hkn.Parameters parameters)
FIXME DOC
|
protected float |
getPauseByIndex(List<Tp> tps,
Vox vpause,
int i)
Pause stands with a K-Event and means a Pause BEFORE this event start.
|
static void |
main(String[] args)
Main method, translates input file in HKN-vox format to svg output file.
|
protected static String |
polyPoints(int n)
Create a polygon with radius = 100.
|
protected void |
printTopTp(PrintWriter pw,
float start,
float end,
@Opt Integer barNum)
Enter the dynamic display of the top tp (measure number) into the source text.
|
void |
update(PrintWriter pw,
String title,
@Opt String subtitle,
@Opt Vox vpause,
@Opt Vox vx,
@Opt Vox vy,
@Opt Vox vcol,
@Opt Vox vsiz,
@Opt Vox vfrm)
Convert the K-voices and write out to file.
|
findVoice, getPauseIndexByIndex, getRelWertFolge_first, getRelWertFolge, update
static final String punit
public static final int screensize
public static final float fixedDuration
public static final float[] pauseDuras
public final int maxPause
pauseDuras
public static final float pauseDark
public static final int[] poss
public static final String[] forms
public static final String[] formEnd
public static final String[] scaleString
public static final String[] colorString
public Score_hkn_svg_v00(String name, Part ts, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Score_hkn.Parameters parameters)
name
- of the score, also used to derive output file namests
- the raw parsed tscore input data.msg
- the drain of all messages.parameters
- controll parsing, if left out, derfaults to "new Parameters
".public static Map<String,Score_hkn_svg_v00> fromTimeScape(TimeScape ts, String topName, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Score_hkn.Parameters parameters)
protected static String polyPoints(int n)
public void update(PrintWriter pw, String title, @Opt @Opt String subtitle, @Opt @Opt Vox vpause, @Opt @Opt Vox vx, @Opt @Opt Vox vy, @Opt @Opt Vox vcol, @Opt @Opt Vox vsiz, @Opt @Opt Vox vfrm)
pw
- where to write the resulttitle
- for generating html title onlysubtitle
- currently not usedvpause
- K-voice controling additional pauses, may be ==nullvx
- K-voice controling the x coordinate, may be ==nullvy
- K-voice controling the y coordinate, may be ==nullvcol
- K-voice controling the color, may be ==nullvsiz
- K-voice controling the size, may be ==nullvfrm
- K-voice controling the form, may be ==nullprotected float getPauseByIndex(List<Tp> tps, Vox vpause, int i)
protected void printTopTp(PrintWriter pw, float start, float end, @Opt @Opt Integer barNum)
public static void main(String[] args)
args[0]
- input file nameargs[1]
- basic score name (also determines the output files)args[2]
- "subtitle", second part of html title ("-" stands for "none",
first part is stem name of the outputfile)
(FIXME source file inidication in generated comment still missing.)args[3]
- name of pause voice ("-" stands for "none")args[4]
- name of H-Voice for "xpos"args[5]
- name of H-Voice for "ypos"args[6]
- name of H-Voice for "color"args[7]
- name of H-Voice for "size"args[8]
- name of H-Voice for "form"