← ClaudeAtlas

code-to-musiclisted

Tools, patterns, and utilities for creating music with code. Output as a .mp3 file with realistic instrument sounds. Write custom compositions to bring creativity to life through music. This skill should be used whenever the user asks for music to be created. Never use this skill for replicating songs, beats, riffs, or other sensitive works. The skill is not suitable for vocal/lyrical music, audio mixing/mastering (reverb, EQ, compression), real-time MIDI playback, or professional studio recording quality.
aiskillstore/marketplace · ★ 329 · Data & Documents · score 79
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