public class Formplan_fuge extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Formplan_fuge.ThForm
Auxiliary class, combining theme number ("I" to "IV") and theme form ("D" or "C").
|
Modifier and Type | Field and Description |
---|---|
(package private) SortedMap<BigInteger,TpTop> |
barnum2tp
Evident
|
protected Map<Event,Integer> |
cpEinsatz
Whether the theme starting at this event is numbered counterpoint material.
|
Translet.Parser<?> |
divMul
Parser for the time stretch factor.
|
Translet.Parser<?> |
einsatz_parser
Parser which accepts theme and counterpoints.
|
(package private) Map<Event,Tp> |
event2endtp
Evident
|
protected Map<Event,Rational> |
factor
A time stretch factor assigned to the theme starting at this event.
|
protected Map<Event,String> |
freemat
Whether the theme starting at this event is free counterpoint material.
|
protected Map<Event,String> |
incomplete
Whether the theme starting at the event is incomplete.
|
protected Map<Event,String> |
inverse
Whether the theme starting at the event is an inverse.
|
Translet.Parser<?> |
kpEinsatz
Parser for contrapunctal material.
|
(package private) Tp |
lastTp
The very last time point in the score input data: no event starts here, but
all last events end.
|
(package private) static Modifiers |
modifiers
Modifiers for the different phases of the parsing process.
|
(package private) MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> |
msg
Evindent.
|
(package private) MessageReceiver<SimpleMessage<?>> |
msgNoLoc
FIXME RAUS
|
(package private) Part |
part
The tscore input data.
|
(package private) SortedMap<Rational,Tp> |
rat2tp
Evident
|
protected Map<Event,String> |
retro
Whether the theme starting at the event runs in retrograde.
|
List<Vox> |
soundVoices
List of all voices, in source order, without the "global current tonal key" voice.
|
Translet.Parser<?> |
themenEinsatz
Parser which accepts additional modifiers: "u" for inverse, "r" for retrograde,
"1/n" or "n/1" for time stretching, and ">" for incompleteness.
|
Translet.Parser<?> |
themenEinsatzForm
Parser which accepts capital roman numbers for theme numbers, "D" and "C" for
dux and comes, or a combination of both.
|
protected Map<Event,Formplan_fuge.ThForm> |
thForm
Recognized theme forms, by the starting event.
|
(package private) Map<TpTop,BigInteger> |
tp2barnum
Evident
|
(package private) Map<Tp,Rational> |
tp2rat
Evident
|
(package private) @Opt String |
voicename_tonal_key
The name of the global voice which give the current tonal key.
|
Constructor and Description |
---|
Formplan_fuge(Part part,
MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
@Opt String voicename_tonal_key)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addEvent(Event e,
int shift,
float xfactor,
Print_Plan_3d printer,
int kind)
Add one event to the Print_Plan_3d list of graphical representations.
|
static void |
main(String[] args)
Test method, translates input file "arg[0]" to a graphical form plan of a fugue, or sim.
|
protected void |
showGraphic()
Construct a graphic representation from the input data in the score object
part . |
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.
|
final MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg
final MessageReceiver<SimpleMessage<?>> msgNoLoc
protected Map<Event,Formplan_fuge.ThForm> thForm
protected Map<Event,String> incomplete
protected Map<Event,String> freemat
protected Map<Event,Integer> cpEinsatz
protected Map<Event,Rational> factor
public final Translet.Parser<?> divMul
public final Translet.Parser<?> kpEinsatz
public final Translet.Parser<?> themenEinsatzForm
public final Translet.Parser<?> themenEinsatz
public final Translet.Parser<?> einsatz_parser
final Part part
@Opt final @Opt String voicename_tonal_key
static final Modifiers modifiers
final Map<TpTop,BigInteger> tp2barnum
final SortedMap<BigInteger,TpTop> barnum2tp
Tp lastTp
public Formplan_fuge(Part part, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, @Opt @Opt String voicename_tonal_key)
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 axisprotected boolean voiceIsGlobal(Vox v)
public void update()
protected void showGraphic()
part
.
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.protected void addEvent(Event e, int shift, float xfactor, Print_Plan_3d printer, int kind)
e
- the event, its start and its end time are neededshift
- a global correction value for the case that the data to render is
an excerpt, starting with a higher measure number.xfactor
- evidentprinter
- the graphical objectkind
- currently only relevant for counterpoint material, selects the graphical
appearance of the line, see Print_Plan_3d
.public static void main(String[] args)