pattern_set
Rename, recolor, resize, or select an existing FL Studio pattern in one call by setting only the fields you need changed. Requires write mode; writes verify individually and are non-atomic.
Instructions
Rename, recolor, resize, or select one existing pattern in one call.
Set only the fields to change. Requires write mode. Writes run in the order
name/color, length, then selection, each read back on a later tick with its
own receipt; verified is true only when all verified. Non-atomic. Use
pattern_create for a new empty pattern. Does not save the project.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Absolute pattern name. | |
| color | No | Absolute unsigned FL color word. | |
| select | No | Also make this FL's current pattern, after the other changes. | |
| length_beats | No | Absolute pattern length in beats. | |
| pattern_number | Yes | One-based pattern number. | |
| expected_before | No | Optional current values from pattern_list for the fields this call changes; refuse if any changed. | |
| stop_on_unverified | No | Skip the remaining writes after the first write whose readback did not verify. An unknown outcome always stops the sequence. | |
| session_fingerprint | No | Optional session_fingerprint from a recent read. The call refuses after a bridge reload or a reported project load. This is a concurrency guard, not authentication or a durable project identity. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| verified | Yes | ||
| warnings | No | ||
| completed | Yes | ||
| applied_at | Yes | ||
| project_saved | No | ||
| skipped_count | Yes | ||
| skipped_steps | No | ||
| pattern_number | Yes | ||
| schema_version | No | 1.0 | |
| stopped_reason | No | ||
| attempted_count | Yes | ||
| requested_count | Yes | ||
| rollback_attempted | No | ||
| stop_on_unverified | Yes | ||
| session_fingerprint | Yes | ||
| automatic_replay_attempted | No | ||
| one_session_preflight_completed | No |