OptionalbarsNumber of bars to generate.
OptionalsubdivisionGrid resolution as the number of equal grid steps per quarter-note beat. The default of 2 yields an eighth-note grid; 4 yields a sixteenth-note grid, 3 an eighth-note triplet grid, and so on.
OptionalctxThe generation context.
Its complexity.rhythmic is this generator's overall onset density: it
scales the per-slot onset probability, so higher values fill more grid
slots. A value outside [0, 1] is rejected. Its seed fixes which slots are
taken, so the same seed always yields the same pattern.
Options controlling generateRhythm.