Class AnticipatedChordProcessor
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AnticipatedChordProcessor
Process the anticipated chords.
-
Constructor Summary
ConstructorDescriptionAnticipatedChordProcessor
(SimpleChordSequence cSeq, float cSeqStartPosInBeats, int nbCellsPerBeat) Construct an object to anticipated phrases corresponding to the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
anticipateChords_Drums
(Phrase p, DrumKit kit) Process the anticipatable chords for Drums phrase p.void
Process the anticipatable chords for a monophonic phrase p (eg a bass phrase).void
Process the anticipatable chords for a polyphonic phrase p (eg a piano phrase).
-
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 emptycSeqStartPosInBeats
- 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
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
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
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
-
-