Generate a drum performance as a flat list of onsets.
Every voice (kick, snare, ghost snares, closed/open/foot hi-hats, ride, toms,
crash, and auxiliary percussion) is emitted as a DrumHit distinguished
by its General MIDI pitch. Groove style selects an internal style and feel;
complexity.rhythmic sets the backing-density level; section shapes kick,
hi-hat, ghost, and percussion density. 16th-note hi-hats drop to 8ths at or
above 150 BPM. When fills is true the final bar is replaced with a fill whose
archetype is shaped by nextSection; a fill that would emit nothing on its
beat falls back to the normal groove so the phrase end is never silent.
euclideanKick overrides the kick with an evenly-spread Euclidean pattern.
Output is fully determined by the options plus the context's seed.
The patterns are 4/4 only — backbeats, hi-hat subdivisions, and fills are all
written against a four-beat bar — so beat positions are quarter notes and bar
n starts at beat 4n.
Generate a drum performance as a flat list of onsets.
Every voice (kick, snare, ghost snares, closed/open/foot hi-hats, ride, toms, crash, and auxiliary percussion) is emitted as a DrumHit distinguished by its General MIDI pitch. Groove style selects an internal style and feel;
complexity.rhythmicsets the backing-density level;sectionshapes kick, hi-hat, ghost, and percussion density. 16th-note hi-hats drop to 8ths at or above 150 BPM. Whenfillsis true the final bar is replaced with a fill whose archetype is shaped bynextSection; a fill that would emit nothing on its beat falls back to the normal groove so the phrase end is never silent.euclideanKickoverrides the kick with an evenly-spread Euclidean pattern. Output is fully determined by the options plus the context's seed.The patterns are 4/4 only — backbeats, hi-hat subdivisions, and fills are all written against a four-beat bar — so beat positions are quarter notes and bar
nstarts at beat4n.