Generating Drum Patterns with an ML Groove Model
Learning objectives
- learner can drive a GrooveTransformer from a sparse hit/velocity/offset seed to a full drum pattern
- learner can integrate MIDI note/Hz conversion so generated patterns trigger a live instrument
Capstone — one whole task that evidences the objectives
Wire a GrooveTransformer into a live beat: feed it a sparse hit/velocity/offset seed, let it predict a full drum pattern, and route the output through MIDI-to-Hz conversion so it plays a synth voice in your rig for a 16-bar loop.
Prerequisite modules
The whole task here is a live-set staple in ML-assisted electronic performance: instead of programming every drum hit, you sketch a sparse rhythmic idea — a kick on the one, a couple of ghost snares — and let a groove model flesh it out into a full 9-voice pattern that keeps your feel while adding stylistically coherent hits. In a techno or broken-beat rig this turns a two-note seed into an evolving drum bed you can steer with a single density control, freeing your hands for synths and mix moves during a 16-bar loop.
Start supported: take a fixed 32-step seed and run it through the model offline, watching how the hit/velocity/offset arrays condition the output and how raising density lowers the per-voice sampling threshold to keep more predicted hits — the atom on GrooveTransformer pattern generation is your JIT reference for the input encoding and threshold logic. Next, vary the seed live and audition the regenerated patterns. Then close the loop into sound: the generated pattern arrives as MIDI notes, and the MIDI-to-Hz tuning formula (A4 = 440 Hz at note 69) is what lets you drive a raw synth voice in your rig rather than a fixed drum sampler. Drill that conversion until it is automatic — you will apply it every time a generated note has to become a frequency mid-performance.
Both required atoms gate the capstone: without the groove model’s seed-to-pattern mechanics you cannot generate the loop, and without MIDI-to-Hz routing the pattern never sounds. The supporting atom on deep learning as a hierarchy of composed concepts is enrichment — it explains why a transformer can learn groove at all, but the capstone plays fine without it.
Atoms in this module
Required — these gate the capstone
Supporting — enrichment, not gating
Part of curricula
- Audio-Visual Performer — integrated, synced live AV — Compose the whole (generative & AI-layered AV) optional
- Generative & AI AV Artist — real-time machine-driven performance — Orient the machine collaborator & ship a first ML AV artefact required