Instrument Fit
instrument_fitFit instrument parameters to a target sound's spectrum, envelope, and width so drums or bass match a reference hit, then save or apply the result.
Instructions
Search instrument parameters so its sound matches a target (spectrum + envelope + width; a band more than 20 dB off costs extra and the reply warns of it). target: a source like 'sound:refsnare' (cut one first with sound_import); instrument: dict, 'preset:x' or 'track:' (start from that track's instrument); params: {"path": [lo, hi]} e.g. {"tone_hz": [100, 250], "filter.cutoff": [300, 8000], "oscs.0.detune": [0, 40]}; notes: what to play (beats at project tempo; use the target's pitch); fmin/fmax restrict the spectral match to a range (e.g. ignore kick bleed below 70 Hz). Saves the result as sound save_as and/or sets it on apply_to_track. wait: when the machine is busy, stand in line this long ('10m' default, '0' refuses at once), as render does. Reach for it when a drum or a sound must have the genre's or the reference's character (a snare, kick or bass that sounds dated or generic): fit it to a hit from analyze_kit's components or sound_extract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | ||
| fmax | No | ||
| fmin | No | ||
| seed | No | ||
| wait | No | 10m | |
| iters | No | ||
| notes | No | 0 C4 1 | |
| params | Yes | ||
| target | Yes | ||
| project | Yes | ||
| save_as | No | ||
| instrument | Yes | ||
| length_sec | No | ||
| target_window | No | ||
| apply_to_track | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |