cw_check_quantize
Judges whether a quantize edit produced the expected note positions by comparing before and after tick arrays or MIDI files, then checks if notes landed on the grid.
Instructions
Judge a quantize from actual data instead of guessing. Give it the note ticks before the edit and the ticks the exported file now holds, and it computes what the settings should have produced and says whether they match and whether the notes landed on the grid. Pass before and after as tick arrays, or pass file paths to read them. The judgement is pure arithmetic, so it works without SONAR running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid | No | The grid the quantize targeted | 16 分音符 |
| after | No | Note start ticks in the exported file | |
| swing | No | Swing that was set. 50 is straight; any other value means the verdict's on-grid test is straight-grid only and says so | |
| before | No | Note start ticks before the edit | |
| strength | No | The strength that was set. Must be the value actually written to the dialog, not the default — a stale 50 explains a half-moved result. | |
| afterFile | No | Read `after` from this .mid instead | |
| beforeFile | No | Read `before` from this .mid instead |