Sound Extract
sound_extractExtracts a clean one-shot from repeated hits by averaging cross-correlation-aligned occurrences, helping you replace a dated drum sound using a reference.
Instructions
Build a clean one-shot of a repeated event by averaging every occurrence at grid position step
(0-based within the bar, 16ths by default) over bars [a, b] (which='all'|'odd'|'even'; every=8 takes bars
a, a+8, a+16... i.e. the same position of an 8-bar loop), aligned by
cross-correlation. Sounds that repeat identically (drum samples, stabs) add up; everything else averages down.
Reports how consistent the occurrences were. Reach for it when a drum in your song sounds dated or generic and
the genre's own hit is in a reference: extract it (from analyze_kit's component wav, not the full drum stem,
which carries the kick) and fit your sound to it. The extracted hit is a target, not a part: it plays
in the song only when the user asked for samples.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | ||
| name | Yes | ||
| step | Yes | ||
| every | No | ||
| which | No | all | |
| pre_ms | No | ||
| source | Yes | ||
| project | Yes | ||
| normalize | No | ||
| length_sec | No | ||
| steps_per_bar | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |