Class AccentProcessor
java.lang.Object
org.jjazz.rhythmmusicgeneration.api.AccentProcessor
Phrase manipulation methods dealing with accents and anticipated chords.
- 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, float cSeqStartPosInBeats, int nbCellsPerBeat, int tempo) 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, 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-
-