Analyze Swing
analyze_swingMeasure how late swung hi-hats land in beats and milliseconds, compare a reference or track, and detect timing drift so you can write or verify swung note placement.
Instructions
How late the swung hi-hats land, in beats and ms (16ths: the 'a' against the 'and'; 8ths: the 'and' against
the beat). Default source: the reference drum stem if there is one, else the reference/render. Use it on a
reference before writing swung notes, and on 'track:' to check yours. Straight = 0.
follow=True reads a record that drifts (played without a click): a beat line follows the thumb, bass or kick
(55-190 Hz) from the project tempo, every 16th step is read on it in band_hz ([lo, hi] Hz, default
[1500, 6000] for finger plucks; [6000, 16000] for hats), and it prints the hits, accents and median offset per
step against the plucks on the beats, and the most-played 16-step strings with the timing inside them. A step
counts as a pluck when its peak is over threshold x the 95th percentile peak (raise it, e.g. 0.5, when a
dense stem reads X on every step). Without follow, a line says when the beat drifts more than 3% and the
fixed grid smears the offsets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| follow | No | ||
| source | No | ||
| band_hz | No | ||
| project | Yes | ||
| threshold | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |