Mimic Measure
mimic_measureCreate an instrument mimic profile from recorded notes or pitch-named files, verify capture quality, and estimate playback accuracy for unrecorded pitches.
Instructions
Measure an instrument from recorded notes into a mimic profile (/voices/.mimic.json), then
use it as {"type": "mimic", "profile": ""}. notes: [[source, pitch], ...] or [[source, pitch, vel,
[t0, t1]]] where source is 'sound:', 'ref', 'ref:' or a path, pitch like 'A4', vel 0..1 (how hard
it was played; default vel), [t0, t1] seconds to cut one note out of a longer file. folder: a directory of
one-note files named by pitch (A4.wav, Fs3.mp3, C#5.flac) instead of notes. One note per file or window,
isolated, a few across the range; two dynamics of the same pitch teach velocity. kind: auto | sustained
(bowed, blown, sung) | decaying (plucked, struck). check=True rebuilds every measured note from the OTHER
notes and reports how close it lands (leave-one-out), the honest estimate for pitches you did not record.
defaults: mimic params stored in the profile and used unless a track overrides them, e.g. the open strings of a
bowed instrument {"strings": ["G3", "D4", "A4", "E5"]} (instrument_help(type='mimic') lists them). Each recording is
checked first for capture faults that would be learned as the instrument's sound (peaks flattened by a browser
mic or a limiter, nothing above 8 kHz from a Bluetooth mic); no_top=True says the instrument has no top, so a
missing top is not a fault.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vel | No | ||
| kind | No | auto | |
| name | Yes | ||
| check | No | ||
| notes | No | ||
| folder | No | ||
| no_top | No | ||
| project | Yes | ||
| defaults | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |