Class AccentProcessor
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AccentProcessor
Phrase manipulation methods dealing with accents and anticipated chords.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
For a given phrase decide how chord symbols with HOLD/SHOT/EXTENDED_HOLD_SHOT rendering options should be processed. -
Constructor Summary
ConstructorDescriptionAccentProcessor
(SimpleChordSequence cSeq, float cSeqStartPosInBeats, int nbCellsPerBeat, int tempo) Construct an object to manipulate phrases corresponding to the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Process the accents of a bass phrase.void
Process accents of a chord oriented phrase (polyphonic).void
processAccentDrums
(Phrase p, DrumKit kit) Process a drums phrase (not percussion).void
Process the Hold/Shot of a chord-based phrase (polyphonic)void
processHoldShotDrums
(Phrase p, DrumKit kit, AccentProcessor.HoldShotMode hsMode) Process Hold/Shots for a drums phrase (not percussion).void
Process the Hold/Shot of a monophonic phrase (bass or others).
-
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 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.tempo
- Required to best adjust e.g. "shot" notes duration
-
-
Method Details
-
processHoldShotDrums
Process Hold/Shots for a drums phrase (not percussion).- Parameters:
p
-kit
-hsMode
-
-
processAccentDrums
Process a drums phrase (not percussion).- Parameters:
p
-kit
- Required to get the accent and crash cymbals pitches
-
processAccentBass
Process the accents of a bass phrase.- Parameters:
p
-
-
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
-
-