lc_write_page
Write a single channel page in a Lovely Composer song using a compact pattern string, replacing the existing page to compose melodies, bass, drums, or chords.
Instructions
Write one page of one channel from a compact pattern string — the main composing tool. One whitespace-separated token per tick starting at tick 0: "." or "R" = empty, "-" = hold the previous note, "<"/">" = hold with fade-in/fade-out, "C5" = note, "C5@25" = note with instrument preset 25. Optional modifiers: *volume(0-7) +effect(letter, e.g. +S slur) ^expression(0-F) ~pan(0-F) %envelope(0-F). Example: "C5@25 . . E5 . G5@25 . . - . . ." The page is replaced entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page index (0-based). | |
| song | Yes | Song number 00..99. | |
| force | No | Overwrite a write-protected song. | |
| folder | Yes | Folder name under the music root, or an absolute path. | |
| channel | Yes | Channel: 0-3 melodic, 4 = chord track. | |
| pattern | Yes | The pattern string, one token per tick. | |
| instrument | No | Default instrument preset id or name for bare notes in this pattern. | |
| ticksPerPage | No | How many ticks of this page play (default: unchanged). |