Class AnticipatedChordProcessor

java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AnticipatedChordProcessor

public class AnticipatedChordProcessor extends Object
Process the anticipated chords.
  • Constructor Details

    • AnticipatedChordProcessor

      public AnticipatedChordProcessor(SimpleChordSequence cSeq, float cSeqStartPosInBeats, int nbCellsPerBeat)
      Construct an object to anticipated phrases corresponding to the specified parameters.
      Parameters:
      cSeq - Can't be empty
      cSeqStartPosInBeats - The start position in beats of cSeq. Must be an integer.
      nbCellsPerBeat - 4 or 3. 3 should be used for ternary feel rhythm or 3/8 or 6/8 or 12/8 time signatures.
  • Method Details

    • anticipateChords_Mono

      public void anticipateChords_Mono(Phrase p)
      Process the anticipatable chords for a monophonic phrase p (eg a bass phrase).

      If a chord is anticipatable, try to anticipate the non-ghost notes of next beat (or earlier).

      Parameters:
      p -
    • anticipateChords_Poly

      public void anticipateChords_Poly(Phrase p)
      Process the anticipatable chords for a polyphonic phrase p (eg a piano phrase).

      If a chord is anticipatable, try to anticipate the non ghost-notes of next beat or before.

      Parameters:
      p -
    • anticipateChords_Drums

      public void anticipateChords_Drums(Phrase p, DrumKit kit)
      Process the anticipatable chords for Drums phrase p.

      If a chord is anticipatable, anticipate some non-ghost notes (bass drum, snare, etc.) of next beat (or earlier).

      Parameters:
      p -
      kit -