diffrhythm_ai library

Classes

RhythmPattern
A class representing a rhythm pattern.

Constants

kBaseUrl → const String
The base URL for the DiffRhythm.ai service.

Functions

calculateRhythmSimilarity(RhythmPattern pattern1, RhythmPattern pattern2) → double
Calculates the similarity between two rhythm patterns.
generateEvenRhythmPattern(int beatsPerMeasure) → RhythmPattern
Generates a rhythm pattern with a specified number of beats per measure.
generateRandomRhythmPattern(int numDurations) → RhythmPattern
Generates a random rhythm pattern.
getEndpoint(String path) → String
A utility function that returns a full URL to the DiffRhythm.ai service.