music-generation

Generate algorithmic music compositions with music21 and export to MIDI, MP3, or WAV.

7|5|Updated Sep 12, 2025
One-click install
npx skills add https://github.com/Cam10001110101/claude-skills-base --skill music-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: music-generation
Source: https://github.com/Cam10001110101/claude-skills-base/tree/main/mnt/skills/examples/music-generation
Command: npx skills add https://github.com/Cam10001110101/claude-skills-base --skill music-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires music21, midi2audio, pydub, mido, numpy, scipy, and includes scripts (resource) components.

What problem does it solve?

This Skill enables generating professional, original music programmatically, avoiding reliance on pre-made loops and enabling on-demand compositions for videos, games, and experiments.

Core Features & Use Cases

  • Algorithmic composition patterns: Leveraging music21 to generate melodies, chords, and arrangements.
  • Two rendering pipelines: Traditional pipeline using soundfonts for orchestral/acoustic timbres and electronic pipeline using real-time synthesis for synth-heavy music.
  • Export formats: MP3 and WAV outputs for easy integration into projects.

Quick Start

Create a simple JSON structure describing tempo, key, time signature, and tracks, then render to MP3 using the included midi_render.py script.

Frequently Asked Questions about music-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate original music programmatically with music21?

Algorithmic composition with music21 lets you generate melodies, chords, and arrangements by code. Define tempo, key, and time signature in JSON, then use the included midi_render.py script to render directly to MP3 or WAV output.

Can I create custom compositions for videos and games automatically?

Yes. This Skill generates on-demand original music pieces tailored to your specifications, exporting MP3 or WAV files ready for integration into video, game, or scene projects without relying on pre-made loops.

What's the difference between the orchestral and electronic rendering pipelines?

The traditional pipeline uses soundfonts for orchestral and acoustic timbres via FluidSynth. The electronic pipeline applies real-time synthesis for synth-heavy compositions, letting you choose the tonal character that matches your project.

Do I need MIDI files to export music with this Skill?

No. The Skill generates MIDI internally from your composition parameters, then renders audio automatically. MIDI data is also available for further processing in other music production tools if needed.

Can I adjust tempo, instrumentation, and dynamics in generated compositions?

Yes. The Skill supports configurable tempo, instrumentation selection, and dynamics control through JSON parameters, allowing fine-grained customization of the algorithmic output before rendering to audio.

What audio formats does the rendering pipeline support?

The Skill exports MP3 and WAV formats, both suitable for immediate project integration. MIDI output is also available for workflows requiring further editing or processing in digital audio workstations.