rewrite_cc
Replace MIDI controller (CC) automation within a time range, preserving existing notes. Define explicit CC points with values, positions, and channels to build precise curves.
Instructions
Replace CC automation in a time range, leaving notes untouched.
Write curves as explicit CC points — there are no curve templates. For a crescendo, insert a series of points with rising cc_value; the resolution is up to you (e.g. one point every half bar).
Args: tracks: JSON array. Each: {"track_index":0, "ccs":[{"cc_number":1, "cc_value":64, "position":0.0, "channel":0}]}. Or "all". position is in seconds. Entries missing any of cc_number/ cc_value/position are skipped silently, so a malformed array still reports success with ccs_inserted: 0 — check that count rather than the success flag. start_time: Range start in seconds. end_time: Range end in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracks | Yes | ||
| end_time | Yes | ||
| start_time | Yes |