This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Rhythm Strategies Module for Gestural MIDI Generator | |
* | |
* Provides pluggable rhythm generation strategies for polyrhythmic pattern creation. | |
* Each strategy returns pattern lengths or rhythm patterns that determine when | |
* musical events trigger. | |
*/ | |
// Helper function to generate Euclidean rhythm patterns | |
function generateEuclidean(k, n) { |