create_song
Builds a new song in Bosca Ceoil from BPM, instruments, patterns, and bar arrangement, replacing the open song; omit details to start with a default piano and empty pattern.
Instructions
Replaces the open song with a new one, optionally built in one go from settings, instruments, patterns and an arrangement. This is the quickest way to write a song. Without instruments and patterns, you get the app's default: one Grand Piano, and one empty pattern on bar 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Beats per minute, 120 by default. | |
| bars | No | One entry per bar, each a list of up to 8 channels holding a pattern index or null. [[0, 2], [1, 2, null, 3]] is two bars. | |
| swing | No | Swing, from -10 to 10. 0 is straight. | |
| effect | No | Global effect: delay, chorus, reverb, distortion, low boost, compressor or high pass. | |
| bar_size | No | Steps between the grid's bar lines, 4 by default. Purely visual. | |
| loop_end | No | Bar after the last bar of the loop. By default, the end of the song. | |
| patterns | No | Bars refer to them by position in this list. | |
| loop_start | No | First bar of the loop, 0 by default. | |
| instruments | No | Up to 16. Patterns refer to them by position in this list. | |
| effect_power | No | Effect strength. 5 or lower turns it off. | |
| pattern_size | No | Steps in every pattern, 16 by default. Each step is a quarter of a beat. | |
| discard_changes | No | Must be true to replace a song with unsaved changes. |