ui_open_piano_roll_for_channel
Switch the piano roll to a specific channel or pattern without closing the window, preventing the viewport from resetting during the change.
Instructions
Switch the piano roll to show a given channel/pattern without closing the window.
In one-channel-per-pattern mode, selecting the pattern causes FL to auto-select its channel and update the piano roll viewport — no openEventEditor call needed (which would cause the window to disappear and reappear). openEventEditor is only called as a last resort when the channel still doesn't match after the pattern switch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| pattern | No |