midi_quantize
Quantize MIDI notes to a rhythmic grid by specifying grid spacing in seconds and pull strength. Align off-time notes precisely for tighter timing.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_index": "<item_index>",
"grid_seconds": "<grid_seconds>"
},
"name": "midi_quantize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strength | No | ||
| item_index | Yes | ||
| grid_seconds | Yes |