ui_set_snap_mode
Set the global snap mode before placing or moving clips in the playlist, ensuring clicks land on the grid. Restore the previous mode afterward.
Instructions
Set the global snap mode. Accepts a name ('bar', 'beat', 'half_beat', 'step', 'line', 'cell', 'none', ...) or a numeric midi.Snap_* value.
Set this BEFORE any GUI clip placement/moves in the playlist so clicks land on the grid; restore the previous mode afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes |