extract_single_cycle
Extract a candidate single-cycle loop and its detected pitch from a local audio file for waveform or sampler use; returns an error result for aperiodic content.
Instructions
Find a candidate single-cycle loop in a local audio file plus its detected pitch.
Side effects: reads the file from disk.
Example: extract_single_cycle(path="/stems/kick.wav") returns the
detected pitch plus the single-cycle sample buffer.
Edge cases: aperiodic content returns {"ok": False, "reason": ...}
instead of crashing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| frame_size | No |