Class AccentProcessor
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AccentProcessor
Phrase manipulation methods dealing with accents.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumFor a given phrase decide how chord symbols with HOLD/SHOT/EXTENDED_HOLD_SHOT rendering options should be processed. -
Constructor Summary
ConstructorsConstructorDescriptionAccentProcessor(SimpleChordSequence cSeq, int nbCellsPerBeat, int tempo, float preCellBeatWindow) Construct an object to manipulate phrases corresponding to the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidProcess the accents of a bass phrase.voidProcess accents of a chord oriented phrase (polyphonic).voidprocessAccentDrums(Phrase p, DrumKit kit) Process a drums phrase (not percussion).voidProcess the Hold/Shot of a chord-based phrase (polyphonic)voidprocessHoldShotDrums(Phrase p, DrumKit kit, AccentProcessor.HoldShotMode hsMode) Process Hold/Shots for a drums phrase (not percussion).voidProcess the Hold/Shot of a monophonic phrase (bass or others).
-
Constructor Details
-
AccentProcessor
public AccentProcessor(SimpleChordSequence cSeq, int nbCellsPerBeat, int tempo, float preCellBeatWindow) Construct an object to manipulate phrases corresponding to the specified parameters.- Parameters:
cSeq- Can't be empty. The start position in beats 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.tempo- Required to best adjust e.g. "shot" notes durationpreCellBeatWindow- 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
-
processHoldShotDrums
Process Hold/Shots for a drums phrase (not percussion).- Parameters:
p-kit-hsMode-
-
processAccentDrums
-
processAccentBass
-
processHoldShotMono
Process the Hold/Shot of a monophonic phrase (bass or others).- Parameters:
p-hsMode-
-
processHoldShotChord
Process the Hold/Shot of a chord-based phrase (polyphonic)- Parameters:
p-hsMode-
-
processAccentChord
Process accents of a chord oriented phrase (polyphonic).- Parameters:
p-
-