Class RhythmEngine

java.lang.Object
org.episteme.social.arts.music.RhythmEngine

public final class RhythmEngine extends Object
Procedural generation of rhythmic patterns by style/period.
  • Method Details

    • generatePattern

      public static List<int[]> generatePattern(RhythmEngine.RhythmStyle style, int measures, int beatsPerMeasure)
      Generates a rhythmic pattern for a given style and number of measures.
    • applySwing

      public static int[] applySwing(int[] straightPattern, double swingRatio)
      Applies swing feel to a straight rhythm pattern.
    • calculateGrooveQuotient

      public static double calculateGrooveQuotient(int[] pattern, int beatsPerMeasure)
      Calculates the groove quotient (syncopation measure) of a pattern.
    • getStylePatterns

      public static List<RhythmEngine.RhythmCell> getStylePatterns(RhythmEngine.RhythmStyle style)
      Gets characteristic patterns for a style.