Class AnticipatedChordProcessor
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AnticipatedChordProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionAnticipatedChordProcessor(SimpleChordSequence cSeq, int nbCellsPerBeat, float preCellBeatWindow) Construct the processor of a chord sequence. -
Method Summary
Modifier and TypeMethodDescriptionvoidanticipateChords_Drums(Phrase p, DrumKit kit) Process the anticipatable chords for Drums phrase p.voidProcess the anticipatable chords for a monophonic phrase p (eg a bass phrase).voidProcess the anticipatable chords for a polyphonic phrase p (eg a piano phrase).
-
Constructor Details
-
AnticipatedChordProcessor
public AnticipatedChordProcessor(SimpleChordSequence cSeq, int nbCellsPerBeat, float preCellBeatWindow) Construct the processor of a chord sequence.- Parameters:
cSeq- Can't be empty. Start beat position must be an arithmetic integer.nbCellsPerBeat- 4 or 3. 3 should be used for ternary feel rhythm or 3/8 or 6/8 or 12/8 time signatures.preCellBeatWindow- A value in the range [0;1/nbCellsPerBeat[. Used to accomodate for non-quantized notes: notes whose relative position is > -preCellBeatWindow will be included in the current cell.
-
-
Method Details
-
getAnticipatableChords
-
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
-