Package eu.bandm.music.top
Class Formplan_fuge
java.lang.Object
eu.bandm.music.top.Formplan_fuge
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Assign each event to a channel number, for different acousting realization of the materials.static class
A compilation of a routing plan into data for sequencer columns.static class
Auxiliary class, combining theme number ("I" to "IV") and theme form ("D" or "C").static enum
How to match themes to graphical or acoustical representations. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final SortedMap
<BigInteger, TpTop> EvidentWhether the theme starting at this event is numbered counterpoint material.(package private) final Multimap
<Integer, SeriesTransformation> Analysis of subjects and dodecaid directions.final Translet.Parser
<?> Parser for the time stretch factor.final Translet.Parser
<?> Topmost parser which accepts themes, counterpoints, pauses, and prolongations.EvidentA time stretch factor assigned to the theme starting at this event.Maps the factors to the code number of the representation.Whether the theme starting at this event is free counterpoint material.(package private) boolean
Whether at least one theme entry is specified as »comes«.(package private) boolean
Indicates that at least one subject appears in more than one dedecaid directions (O, I, R, RI).Whether the theme starting at the event is incomplete.Whether the theme starting at the event is an inverse.final Translet.Parser
<?> Parser for contrapunctal material.(package private) Tp
The very last time point in the score input data: no event starts here, but all last events end.static final String
(package private) static final Modifiers
Modifiers for the different phases of the parsing process.(package private) final MessageReceiver
<SimpleMessage<XMLDocumentIdentifier>> Evident.(package private) final Part
The tscore input data.Input-side representation of a pause event.Input-side representation of a continuing event.EvidentWhether the theme starting at the event runs in retrograde.List of all voices, in source order, without the "global current tonal key" voice.(package private) int
Number of appearing themes (= highest number + 1, no check for gaps!)final Translet.Parser
<?> Parser which accepts additional modifiers: "u" for inverse, "r" for retrograde, "1/n" or "n/1" for time stretching, and ">" for incompleteness.
(Currently all this information is only partially reflected in the graphical rendering!)final Translet.Parser
<?> Parser which accepts capital roman numbers for theme numbers, "D" and "C" for dux and comes, or a combination of both.
(Currently all this information is only partially reflected in the graphical rendering!)static final List
<Formplan_fuge.ThMode> static final List
<Formplan_fuge.ThMode> protected Map
<Event, Formplan_fuge.ThForm> Recognized theme forms, by the starting event.(package private) final Map
<TpTop, BigInteger> Maps the top elements in the score's "T" line to measure numbers = bar numbers.EvidentThe name of the global voice which give the current tonal key. -
Constructor Summary
ConstructorsConstructorDescriptionFormplan_fuge
(Part part, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt String voicename_tonal_key) Only constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addEvent
(Event e, int shift, float xfactor, Print_Plan_3d printer, int kind, boolean merge) Add one event to the Print_Plan_3d list of graphical representations.protected SeriesTransformation
getDodecaid
(Event e) Get the invers/retrograde form of a theme entry.(package private) final Rational
Reads the factor and substitutes a 1.0 when missing.float
Evident.static void
Test method, translates input file "arg[0]" to a graphical form plan of a fugue, or sim.makeRoutingPlan
(Formplan_fuge.ThMode representation) protected void
Deprecated.void
toGraphics
(Print_Plan_3d printer_th, Print_Plan_3d printer_kp, Formplan_fuge.ThMode thMode, float xfactor, int shift) Construct a graphic representation from the score data.void
update()
Translate untyped tscore data into semantically sensible "fugue form plan" attribute collection.protected boolean
voiceIsGlobal
(Vox v) Whether this voice is the global "current tonal key" voice.
-
Field Details
-
msg
Evident. -
thForm
Recognized theme forms, by the starting event. -
inverse
Whether the theme starting at the event is an inverse. -
MINIMUM_COMPLETUM
- See Also:
-
incomplete
Whether the theme starting at the event is incomplete. -
retro
Whether the theme starting at the event runs in retrograde. -
freemat
Whether the theme starting at this event is free counterpoint material. This is indicated by an "X" in the tscore source, and rendered by the line type "0". -
cpEinsatz
Whether the theme starting at this event is numbered counterpoint material. This is indicated by a "1" to "9" in the tscore source, and rendered by the line type of this number. -
factor
A time stretch factor assigned to the theme starting at this event. -
prolongate
Input-side representation of a continuing event. -
pause
Input-side representation of a pause event. -
divMul
Parser for the time stretch factor. -
kpEinsatz
Parser for contrapunctal material. -
themenEinsatzForm
Parser which accepts capital roman numbers for theme numbers, "D" and "C" for dux and comes, or a combination of both.
(Currently all this information is only partially reflected in the graphical rendering!) -
themenEinsatz
Parser which accepts additional modifiers: "u" for inverse, "r" for retrograde, "1/n" or "n/1" for time stretching, and ">" for incompleteness.
(Currently all this information is only partially reflected in the graphical rendering!) -
einsatz_parser
Topmost parser which accepts themes, counterpoints, pauses, and prolongations. -
part
The tscore input data. -
voicename_tonal_key
The name of the global voice which give the current tonal key. (This info is currently not represented in the graphical rendering, but used only to ignore this voice.) -
modifiers
Modifiers for the different phases of the parsing process. -
tp2barnum
Maps the top elements in the score's "T" line to measure numbers = bar numbers. These are (normally) one-based. -
barnum2tp
Evident -
lastTp
Tp lastTpThe very last time point in the score input data: no event starts here, but all last events end. -
tp2rat
Evident -
rat2tp
Evident -
event2endTp
Evident -
soundVoices
List of all voices, in source order, without the "global current tonal key" voice. -
factorList
Maps the factors to the code number of the representation. -
themen
int themenNumber of appearing themes (= highest number + 1, no check for gaps!) -
hasComes
boolean hasComesWhether at least one theme entry is specified as »comes«. (All entries without specification are »dux« by default.) -
directions
Analysis of subjects and dodecaid directions. In larger contexts (like "Die Kunst der Fuge") one particular subject may be called "inverse" at ALL its entries, which is not suffiecient to make ThMode.direction sensible. -
hasMultiDirections
boolean hasMultiDirectionsIndicates that at least one subject appears in more than one dedecaid directions (O, I, R, RI). -
themesRepresentationPriority_auditive
-
themesRepresentationPriority_visual
-
-
Constructor Details
-
Formplan_fuge
public Formplan_fuge(Part part, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt String voicename_tonal_key) Only constructor.- Parameters:
part
- the tscore datamsg
- drain for all messagesvoicename_tonal_key
- the name of the voice which contains the current tonal key, changing along the time axis
-
-
Method Details
-
voiceIsGlobal
Whether this voice is the global "current tonal key" voice. -
getLastTpFloat
public float getLastTpFloat()Evident. -
getFactor
Reads the factor and substitutes a 1.0 when missing. -
getDodecaid
Get the invers/retrograde form of a theme entry. -
update
public void update()Translate untyped tscore data into semantically sensible "fugue form plan" attribute collection. This method reads the event lists contained in TimeScape->voices->events, ordered by time point, and writes to all the local Map and Set output data declared locally. -
makeRoutingPlan
-
defaultThemesRepresentationMode_visual
-
defaultThemesRepresentationMode_auditive
-
toGraphics
public void toGraphics(Print_Plan_3d printer_th, Print_Plan_3d printer_kp, Formplan_fuge.ThMode thMode, float xfactor, int shift) Construct a graphic representation from the score data. -
addEvent
protected void addEvent(Event e, int shift, float xfactor, Print_Plan_3d printer, int kind, boolean merge) Add one event to the Print_Plan_3d list of graphical representations.- Parameters:
e
- the event, its start and its end time are neededshift
- a global correction value for the rational time point values. Needed in case that the data to render is an excerpt, starting later than the piece.xfactor
- evidentprinter
- the graphical objectkind
- currently only relevant for counterpoint material, selects the graphical appearance of the line, seePrint_Plan_3d
.merge
- whether adjacent segments of same kind shall be merged.
-
showGraphic
Deprecated.Construct and show a Swing graphic representation of the score data. The x factor can be given be the timeless meta data in the part object. Then the graphic is shown in a popping up Swing window. -
main
Test method, translates input file "arg[0]" to a graphical form plan of a fugue, or sim. Then it is shown in a popping up Swing window.ZZt demo aufrufe : // sig/examples/tscore make testplan1 /kdf_vii.formplan // make testplan0 .../schubert_messe_Es_gloria.formplan
-