Package eu.bandm.music.haken
Class Score_hkn_svg_v00
java.lang.Object
eu.bandm.music.haken.Score_hkn
eu.bandm.music.haken.Score_hkn_svg_v00
A first version of a haken score for realization with svg geometric forms.
Input is dura=duration, color = red/yellow/green, pos=bottom/middle/top,
size=tiny/middle/large, form=circle, sixside, triangle
Usage: create a new instance with an already raw-parsed TimeScape; then call update(...) with the six(6) selected voices.
The
See
FIXME PAUSENMODUS einstellbar
FIXME Allerletzte taktnummernanzeige
Usage: create a new instance with an already raw-parsed TimeScape; then call update(...) with the six(6) selected voices.
The
main(String[])
method takes filenames and voice names from the command
line parameters.See
SvgSource
for documentation on the generation of dynamic SVG.
That class is NOT used here because this class extends Score_hkn
instead.
FIXME PAUSENMODUS einstellbar
FIXME Allerletzte taktnummernanzeige
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.music.haken.Score_hkn
Score_hkn.Expansion, Score_hkn.Parameters
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
Values for colors: green/yellow/red by U,M and O.static final float
Duration how long each graphical state will be presented.static final String[]
Svg source text to end the graphical form, by U,M and O.static final String[]
Values for graphical form, by U,M and O.final int
Max index intopauseDuras
static final float
Only pause durations ABOVE this value will be dark.static final float[]
Durations for pauses p0..p4static final int[]
Values for vertical and horizontal positions by U,M and O.(package private) static final String
Source text for "pixel" as an appended unit string.static final String[]
Values for size, by U,M and O.static final int
Upper limit of (physical) device coordinates, in "pt" = "points".Fields inherited from class eu.bandm.music.haken.Score_hkn
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 Summary
ConstructorDescriptionScore_hkn_svg_v00
(String name, Part ts, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt Score_hkn.Parameters parameters) Only constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Map
<String, Score_hkn_svg_v00> fromTimeScape
(TimeScape ts, String topName, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt Score_hkn.Parameters parameters) FIXME DOCprotected 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 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.Methods inherited from class eu.bandm.music.haken.Score_hkn
findVoice, getPauseIndexByIndex, getRelWertFolge, getRelWertFolge_first, update
-
Field Details
-
punit
Source text for "pixel" as an appended unit string.- See Also:
-
screensize
public static final int screensizeUpper limit of (physical) device coordinates, in "pt" = "points".- See Also:
-
fixedDuration
public static final float fixedDurationDuration how long each graphical state will be presented. (Can effectively be enhanced by "non-dark-pauses").- See Also:
-
pauseDuras
public static final float[] pauseDurasDurations for pauses p0..p4 -
maxPause
public final int maxPauseMax index intopauseDuras
-
pauseDark
public static final float pauseDarkOnly pause durations ABOVE this value will be dark.- See Also:
-
poss
public static final int[] possValues for vertical and horizontal positions by U,M and O. -
forms
Values for graphical form, by U,M and O. -
formEnd
Svg source text to end the graphical form, by U,M and O. -
scaleString
Values for size, by U,M and O. -
colorString
Values for colors: green/yellow/red by U,M and O.
-
-
Constructor Details
-
Score_hkn_svg_v00
public Score_hkn_svg_v00(String name, Part ts, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Score_hkn.Parameters parameters) Only constructor.- 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 "newScore_hkn.Parameters
".
-
-
Method Details
-
fromTimeScape
public static Map<String,Score_hkn_svg_v00> fromTimeScape(TimeScape ts, String topName, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt Score_hkn.Parameters parameters) FIXME DOC -
polyPoints
Create a polygon with radius = 100. COPIED from MovingForms FIXME -
update
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) Convert the K-voices and write out to file.- Parameters:
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 ==null
-
getPauseByIndex
Pause stands with a K-Event and means a Pause BEFORE this event start. -
printTopTp
Enter the dynamic display of the top tp (measure number) into the source text. (Cf. the svg docu concerning text http://svg.tutorial.aptico.de/start2.php?knr=8&kname=Text -
main
Main method, translates input file in HKN-vox format to svg output file.- Parameters:
args
-
[0] input file name
[1] basic score name (appending ".svg" gives the output file name)
[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.)
[3] name of pause voice ("-" stands for "none")
[4] name of H-Voice for "xpos"
[5] name of H-Voice for "ypos"
[6] name of H-Voice for "color"
[7] name of H-Voice for "size"
[8] name of H-Voice for "form"
-