Repository navigation
Add LLM prompt section for AI-assisted score composition - #353
Merged
Merged
Conversation
A new "Compose with an LLM" section below the format guide holds a self-contained prompt that teaches any LLM the Scrimshaw score format: settings, voices and options, every instrument and chord suffix, melodic and drum bar syntax, patterns, arrangement, a step-counting checklist and a complete example score that compiles without errors. A Copy prompt button puts it on the clipboard, falling back to selecting the text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R3xuRtjVHqHo1GNbget6Tu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01R3xuRtjVHqHo1GNbget6Tu
Claude Opus 5.5
Summary
This PR adds a new "Compose with an LLM" section to the Scrimshaw jukebox that enables users to generate musical scores using large language models. The feature includes a comprehensive prompt that teaches LLMs the Scrimshaw score format, along with UI controls to copy the prompt.
Key Changes
New UI Section: Added a dedicated section with ID
promptcontaining:<pre>element containing the full LLM instruction promptComprehensive LLM Prompt: Included detailed documentation covering:
Styling: Added CSS rules for the prompt section:
.prompt-intro: Styled introductory paragraph with max-width constraint.prompt-bar: Spacing for the button barpre.prompt: Scrollable code block with word wrapping and focus stylingJavaScript Functionality: Implemented copy-to-clipboard handler for the prompt button:
Implementation Details
The prompt is designed to be self-contained and comprehensive, allowing users to paste it directly into any LLM chat interface and then describe the music they want composed. The implementation mirrors the existing "Copy score" button pattern for consistency with the rest of the UI.