midi_quantize
Quantize MIDI note start times to a musical grid. Adjust grid spacing in seconds and snap strength (0–1) to align notes precisely to the tempo.
Instructions
Quantize notes in a MIDI item to a time grid.
Grid math: for 120 BPM, a 16th note = 0.125s, 8th = 0.25s, quarter = 0.5s. At tempo T: grid_sec = (60 / T) * (4 / divisor). For 140 BPM 16ths: (60/140) * (4/16) = 0.107s.
Args: item_index: Global item index of the MIDI item. grid_seconds: Grid spacing in seconds (see above). strength: 0.0 (no quantize) to 1.0 (hard snap). 0.5 = pull halfway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_index | Yes | ||
| grid_seconds | Yes | ||
| strength | No |