Package org.jjazz.phrasetransform.api
Class PhraseTransforms
java.lang.Object
org.jjazz.phrasetransform.api.PhraseTransforms
Various helper methods about PhraseTransforms.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DrumKitgetDrumKit(SizedPhrase sp, SongPartContext context) Retrieve the DrumKit for the specified phrase.static InstrumentgetInstrument(SizedPhrase sp, SongPartContext context) static RhythmVoicegetRhythmVoice(SizedPhrase sp, SongPartContext context)
-
Constructor Details
-
PhraseTransforms
public PhraseTransforms()
-
-
Method Details
-
getInstrument
-
getRhythmVoice
-
getDrumKit
Retrieve the DrumKit for the specified phrase.Use the drumkit from the instrument associated to the phrase channel. If null (possible if it's a VoidInstrument for a GM device), use the RhythmVoice drumkit.
- Parameters:
sp- A drums phrasecontext-- Returns:
-