Class AccentProcessor

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

public class AccentProcessor extends Object
Phrase manipulation methods dealing with accents and anticipated chords.
See Also:
  • Constructor Details

    • AccentProcessor

      public AccentProcessor(SimpleChordSequence cSeq, float cSeqStartPosInBeats, int nbCellsPerBeat, int tempo)
      Construct an object to manipulate 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.
      tempo - Required to best adjust e.g. "shot" notes duration
  • Method Details

    • processHoldShotDrums

      public void processHoldShotDrums(Phrase p, DrumKit kit, AccentProcessor.HoldShotMode hsMode)
      Process Hold/Shots for a drums phrase (not percussion).

      Parameters:
      p -
      kit -
      hsMode -
    • processAccentDrums

      public void processAccentDrums(Phrase p, DrumKit kit)
      Process a drums phrase (not percussion).

      Parameters:
      p -
      kit - Required to get the accent and crash cymbals pitches
    • processAccentBass

      public void processAccentBass(Phrase p)
      Process the accents of a bass phrase.

      Parameters:
      p -
    • processHoldShotMono

      public void processHoldShotMono(Phrase p, AccentProcessor.HoldShotMode hsMode)
      Process the Hold/Shot of a monophonic phrase (bass or others).

      Parameters:
      p -
      hsMode -
    • processHoldShotChord

      public void processHoldShotChord(Phrase p, AccentProcessor.HoldShotMode hsMode)
      Process the Hold/Shot of a chord-based phrase (polyphonic)

      Parameters:
      p -
      hsMode -
    • processAccentChord

      public void processAccentChord(Phrase p)
      Process accents of a chord oriented phrase (polyphonic).

      Parameters:
      p -