Instrument Fit
instrument_fitSearch instrument parameters to match a target sound's spectrum, envelope, and width, then save or apply the result to a track.
Instructions
Search instrument parameters so its sound matches a target (spectrum + envelope + width). 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | ||
| fmax | No | ||
| fmin | No | ||
| seed | No | ||
| 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 |