Mimic Measure
mimic_measureMeasure an instrument from recorded notes or one-note folders into a reusable profile, so tracks can play realistic parts without re-recording each pitch.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vel | No | ||
| kind | No | auto | |
| name | Yes | ||
| check | No | ||
| notes | No | ||
| folder | No | ||
| project | Yes | ||
| defaults | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |