Package org.jjazz.phrasetransform.api
Class PhraseTransforms
java.lang.Object
org.jjazz.phrasetransform.api.PhraseTransforms
Various helper methods about PhraseTransforms.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DrumKit
getDrumKit
(SizedPhrase sp, SongPartContext context) Retrieve the DrumKit for the specified phrase.static Instrument
getInstrument
(SizedPhrase sp, SongPartContext context) static RhythmVoice
getRhythmVoice
(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:
-