Skip to content

Snap modes

The snap mode constants are used by ui.getSnapMode() and ui.setSnapMode() to represent FL Studio's snap mode.

Snap_Default module-attribute

Snap_Default = -2

Use main snap mode. This only works for the piano roll and playlist snap modes.

Snap_Line module-attribute

Snap_Line = 0

Snap to lines.

Snap_Cell module-attribute

Snap_Cell = 1

Snap to cells.

Snap_None module-attribute

Snap_None = 3

Don't use snapping.

Snap_SixthStep module-attribute

Snap_SixthStep = 4

Snap to 1/6 of a step.

Snap_FourthStep module-attribute

Snap_FourthStep = 5

Snap to 1/4 of a step.

Snap_ThirdStep module-attribute

Snap_ThirdStep = 6

Snap to 1/3 of a step.

Snap_HalfStep module-attribute

Snap_HalfStep = 7

Snap to 1/2 of a step.

Snap_Step module-attribute

Snap_Step = 8

Snap to steps.

Snap_SixthBeat module-attribute

Snap_SixthBeat = 9

Snap to 1/6 of a beat.

Snap_FourthBeat module-attribute

Snap_FourthBeat = 10

Snap to 1/4 of a beat.

Snap_ThirdBeat module-attribute

Snap_ThirdBeat = 11

Snap to 1/3 of a beat.

Snap_HalfBeat module-attribute

Snap_HalfBeat = 12

Snap to 1/2 of a beat.

Snap_Beat module-attribute

Snap_Beat = 13

Snap to beats.

Snap_SixthBar module-attribute

Snap_SixthBar = 14

Snap to 1/6 of a bar.

Snap_FourthBar module-attribute

Snap_FourthBar = 15

Snap to 1/4 of a bar.

Snap_ThirdBar module-attribute

Snap_ThirdBar = 16

Snap to 1/3 of a bar.

Snap_HalfBar module-attribute

Snap_HalfBar = 17

Snap to 1/2 of a bar.

Snap_Bar module-attribute

Snap_Bar = 14

Snap to bars.

Snap_Events module-attribute

Snap_Events = 16

Snap to events.

Snap_Markers module-attribute

Snap_Markers = 17

Snap to markers.