Create CHOP recorder
create_chop_recorderCaptures source CHOP channels over a fixed window, snapshots to a Table DAT, and plays back the take via Datto CHOP. Persists last take across .toe reloads.
Instructions
Build a CHOP recorder/player container that captures a source CHOP's channels over a fixed window using a Trail CHOP, snapshots the trail into a Table DAT on Stop, and plays the take back via a Datto CHOP indexed by a Timer CHOP–driven Lookup CHOP, terminating on a Null CHOP ready for bind_to_channel. Re-entrant: re-running with the same name updates controls without rebuilding. The last take is persisted in comp.store so it survives a .toe reload. Large takes (nchan × samples > 250k) are saved to disk instead of stored in the .toe. Note: time-dependent playback reads 0 when the TD timeline is paused — that is expected behavior.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Container name, e.g. 'chop_rec_hand' | |
| parent | No | Parent COMP path, defaults to '/' | |
| sourceChop | Yes | Path to source CHOP, e.g. '/project1/null_audio' | |
| lengthSeconds | No | Trail window + take duration in seconds (0.25–120) | |
| takeName | No | Storage key for persisted take | take1 |
| loop | No | When true, timer cycles; when false, plays once then holds | |
| recordOnCreate | No | If true, sets Record=1 on creation so the trail begins filling immediately | |
| autoBind | No | Optional 'opPath:parName' to auto-bind the Null CHOP output channel |