random_rhythm
Roll a random rhythm pattern of given length, with adjustable density and accent probability. Returns a pattern string for MIDI composition.
Instructions
Roll a random rhythm pattern of length steps (a pure dice roll).
Returns a pattern string like 'O...Oo..' where O = strong beat, o = weak
beat, . = pause. density is the chance a step holds a note;
accent_probability the chance a note is strong. The pattern feeds the
rhythm argument of notes_to_midi / song_to_midi; you can also edit it
by hand first. Reproducible via seed; the seed used is always returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| density | No | ||
| accent_probability | No | ||
| seed | No |