Package eu.bandm.music.top
Class CwnToFloatSig_withOrnament<S extends Score_cwn>
java.lang.Object
eu.bandm.music.top.CwnToFloatSig_basic<S>
eu.bandm.music.top.CwnToFloatSig_withOrnament<S>
Creates as output a basic sig sequencer data to be put into a
CwnSequencerFloat
, etc.-
Field Summary
Modifier and TypeFieldDescriptionprotected @eu.bandm.tools.annotations.Opt byte[]
protected @eu.bandm.tools.annotations.Opt int[]
Index into the event stream for an event with the lower pitch needed for the ornament.protected @eu.bandm.tools.annotations.Opt int[]
Index into the event stream for an event with the upper pitch needed for the ornament.Fields inherited from class eu.bandm.music.top.CwnToFloatSig_basic
articulation2code, currentRationalDuration, defaultInitialTempo, eventNumber, expandingChunkSize, filenamestem, generationDate, initialChunkSize, INTERNAL_SOURCE, measureNumber, mm60, msec_per_whole, msg, outDir, score, sig_text_column_header, sig_text_eof, sig_text_header, sourceIndication, values_articulation, values_duration, values_fifths, values_number, values_octaves, values_when, voice_in_arrays
-
Constructor Summary
ConstructorDescriptionCwnToFloatSig_withOrnament
(MessageReceiver<SimpleMessage<eu.bandm.tools.util.xml.XMLDocumentIdentifier>> msg, S score, @Opt String sourceIndication, @Opt String filenamestem, @Opt File outDir, int initialChunkSize, int expandingChunkSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
extraColumns
(@Opt PrintWriter txt, @Opt DataOutputStream dos, Event e) Write out additional file column entries (text and binary) and fill the additional arrays.protected void
Must be overriden by each subclass to construct the newly introduced arrays.protected void
resizeArrays
(int newsize) Every subclass must override this method by code which adjusts its newly introduced data arrays accordingly.Methods inherited from class eu.bandm.music.top.CwnToFloatSig_basic
articulation2code, closeArrays, convert, dump, dumpExtraColumns, enlargeArrays, extraColumns, getValues_articulation, getValues_duration, getValues_fifths, getValues_number, getValues_octaves, getValues_when, initialTempo, main, note_duration_to_msec, rat_to_msec, setMM, setMM, writeEvent
-
Field Details
-
values_ornament
-
values_ornamentUpper
Index into the event stream for an event with the upper pitch needed for the ornament. -
values_ornamentLower
Index into the event stream for an event with the lower pitch needed for the ornament.
-
-
Constructor Details
-
CwnToFloatSig_withOrnament
-
CwnToFloatSig_withOrnament
-
-
Method Details
-
newArrays
protected void newArrays()Must be overriden by each subclass to construct the newly introduced arrays. That must callsuper.newArrays()
. Is only called ifCwnToFloatSig_basic.initialChunkSize
> 0.- Overrides:
newArrays
in classCwnToFloatSig_basic<S extends Score_cwn>
-
resizeArrays
protected void resizeArrays(int newsize) Every subclass must override this method by code which adjusts its newly introduced data arrays accordingly. The code in every subclass must invokesuper.resizeArrays(int);
.- Overrides:
resizeArrays
in classCwnToFloatSig_basic<S extends Score_cwn>
-
extraColumns
Write out additional file column entries (text and binary) and fill the additional arrays. Ornaments are treated as follows:- The latest event number for all diatonic pitches is memorized, anyhow.
- If the current event carries an ornament, the numbers of events which correspond to its lower and/or upper aux pitch are entered.
- If such an event has not yet happened, the reqeuest for a back-patching is
memorized.
(E.g. Bach d-minor toccata:
event #0 : d (praller with the c below, not yet occured)
event #1 : c to be used in the ornament of event #0
)
-