Stage Take Warp
stage_take_warpAligns a take's hit accents to the nearest beats by generating a time-warped loop at a specified BPM and bar count, then returns where the hits landed in grid units.
Instructions
Put a take's hits on the beat: a new silent take of exactly bars bars at bpm (a loop), its time warped piecewise-linearly so each hit (an accent: a hand or the head stopping or turning hard, at least 0.6 beat apart) lands on the nearest beat (sub=0.5: half beat), no segment under 0.75x or over 1.33x speed, resampled at 30 Hz with the frames between samples mixed. Cut the window first (stage_take_loop) so the take is about bars long (refused when more than 2x off). Hits and knots go in its meta.beat_warp. To keep it on the song as it plays: stage_actor_play(take=, loop=True, at_music=). Returns its id and where the hits landed in grid units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | Yes | ||
| sub | No | ||
| bars | No | ||
| name | Yes | ||
| take | Yes | ||
| scene | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |