Class PhraseTransforms

java.lang.Object
org.jjazz.phrasetransform.api.PhraseTransforms

public class PhraseTransforms extends Object
Various helper methods about PhraseTransforms.
  • Constructor Details

    • PhraseTransforms

      public PhraseTransforms()
  • Method Details

    • getInstrument

      public static Instrument getInstrument(SizedPhrase sp, SongPartContext context)
    • getRhythmVoice

      public static RhythmVoice getRhythmVoice(SizedPhrase sp, SongPartContext context)
    • getDrumKit

      public static DrumKit getDrumKit(SizedPhrase sp, SongPartContext context)
      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 phrase
      context -
      Returns: