Class CwnToDoubleSig_withOrnament<S extends Score_cwn>

java.lang.Object
eu.bandm.music.top.CwnToDoubleSig_basic<S>
eu.bandm.music.top.CwnToDoubleSig_withOrnament<S>

public class CwnToDoubleSig_withOrnament<S extends Score_cwn> extends CwnToDoubleSig_basic<S>
Creates as output a basic sig sequencer data to be put into a CwnSequencerDouble, etc.
  • Field Details

    • values_ornament

      @Opt protected @eu.bandm.tools.annotations.Opt byte[] values_ornament
    • values_ornamentUpper

      @Opt protected @eu.bandm.tools.annotations.Opt int[] values_ornamentUpper
      Index into the event stream for an event with the upper pitch needed for the ornament.
    • values_ornamentLower

      @Opt protected @eu.bandm.tools.annotations.Opt int[] values_ornamentLower
      Index into the event stream for an event with the lower pitch needed for the ornament.
  • Constructor Details

  • Method Details

    • newArrays

      protected void newArrays()
      Must be overriden by each subclass to construct the newly introduced arrays. That must call super.newArrays(). Is only called if CwnToDoubleSig_basic.initialChunkSize > 0.
      Overrides:
      newArrays in class CwnToDoubleSig_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 invoke super.resizeArrays(int);.
      Overrides:
      resizeArrays in class CwnToDoubleSig_basic<S extends Score_cwn>
    • extraColumns

      protected void extraColumns(@Opt @Opt PrintWriter txt, @Opt @Opt DataOutputStream dos, Event e)
      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
        )