save_song
Save a Sonic Pi song to the library with an auto-incremented version number. Each song is stored as a new version in a folder named after the song.
Instructions
Save a full song to the songs library with auto-incrementing version number.
Creates songs/{name}/v{N}.rb where N is one higher than the current latest version.
Args: name: Song folder name in snake_case (e.g. "dark_pop_em", "aurora_borealis") code: The Sonic Pi Ruby code to save
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |