code-to-musiclisted
Install: claude install-skill aiskillstore/marketplace
This skill provides **tools and patterns** for music composition, not pre-baked solutions. The intelligence and music21 library should be used to compose dynamically based on user requests.
**Core Principle**: Write custom code that composes music algorithmically rather than calling functions with hardcoded melodies.
## Installation & Setup
### Quick Installation
Run the automated installer for complete setup: `install.sh`. This installs all system dependencies, Python packages, and verifies the installation.
**Note:** The install script may display "error: externally-managed-environment" messages at the end. These are expected and can be safely ignored - the dependencies are already installed. If such messages appear, the installation was successful.
### Available SoundFonts
**Traditional Pipeline (Orchestral/Acoustic):**
- **`/usr/share/sounds/sf2/FluidR3_GM.sf2`** (141MB, General MIDI soundfont - use for high-quality orchestral/acoustic samples)
- `/usr/share/sounds/sf2/default.sf2` (symlink to best available)
- ⚠️ **DO NOT use TimGM6mb.sf2** - inferior quality, guitars sound electronic/piano-like
**Electronic Pipeline:**
- Uses the same FluidR3_GM.sf2 soundfont as traditional music
- The difference is which GM programs you choose (synth programs 38-39, 80-95 instead of orchestral)
### Key Concepts
- **Always create downloadable MP3 files** (not HTML players)
- **music21.instrument classes can be used** for convenience: `instrument.Violin()`, `instrument.Violonce