Files
pytheory/docs
kennethreitz c79d1b97da Make custom drum patterns a first-class public API
- Export `Hit` at the top level (alias `_Hit` kept for back-compat) so
  building a Pattern no longer needs a private import.
- `score.drums()` accepts a `Pattern` object, not just a preset name —
  custom grooves get the same repeats/fill/split/layer options.
- `layer=True` on `drums()`/`add_pattern()` overlays patterns instead
  of appending them, replacing the `_drum_pattern_beats` cursor hack —
  the supported way to stack grooves and polyrhythms.

Adds tests and updates the drums guide + changelog.

Refs #52, #55, #56.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-14 11:14:07 -04:00
..