UNPKG

@kolbo/mcp

Version:

Kolbo AI MCP Server - Generate images, videos, music, speech, and sound effects from Claude Code

146 lines (111 loc) • 5.74 kB
--- name: music-prompting description: > MUST load before generate_music. BPM by video type, key/mood mapping, background-score structure, duration matching, looping. Do NOT write a music prompt from memory and skip this skill. Keywords: music, BPM, tempo, key, mood, instrumental, background music, suno, generate_music, score, soundtrack --- # Music Generation — Prompting Guide ## Quick Reference ``` INSTRUMENTAL: Always force_instrumental=true for video background PROMPT ORDER: genre/style → BPM → key/mood → instruments → energy → purpose KEY RULE: Music must be 18-20 dB below narration (see sound-design skill) ALWAYS INCLUDE: "background" or "underscore" in every prompt ``` ## BPM Selection by Video Type | Video Type | BPM Range | Prompt Fragment | |-----------|-----------|-----------------| | Educational explainer | 80-100 | "gentle ambient electronic, 90 BPM" | | Corporate / tech | 100-120 | "upbeat corporate pop, 110 BPM, positive" | | Epic / dramatic reveal | 60-80 | "cinematic orchestral, 70 BPM, building tension" | | Fast-paced montage | 120-140 | "energetic electronic, 130 BPM, driving beat" | | Meditation / calm | 50-70 | "ambient drone, 60 BPM, peaceful" | | Comedy / lighthearted | 100-130 | "playful ukulele pop, 120 BPM, whimsical" | | Sad / reflective | 60-80 | "melancholic piano, 65 BPM, minor key" | | Action / hype | 140-170 | "high-intensity drum and bass, 160 BPM" | ## Key and Mood Mapping | Mood | Key | Musical Characteristics | |------|-----|----------------------| | Happy / upbeat | C major, G major | Bright, resolved, energetic | | Serious / professional | D minor, A minor | Grounded, authoritative | | Mysterious / curious | E minor, B minor | Tension, anticipation | | Triumphant / inspiring | D major, Bb major | Expansive, climactic | | Melancholic / thoughtful | F minor, C minor | Reflective, emotional | | Neutral / ambient | C major, Am | Unobtrusive, background | ## Prompt Structure ``` [GENRE/STYLE], [BPM], [KEY/MOOD], [INSTRUMENTS], [ENERGY LEVEL], [PURPOSE] ``` ### Examples **Educational explainer:** ``` Gentle lo-fi ambient electronic, 90 BPM, C major, soft synth pads and light percussion, calm and steady energy, background music for narration ``` **Corporate product demo:** ``` Modern upbeat corporate pop, 110 BPM, G major, acoustic guitar and light drums, positive energy building gradually, underscore for product walkthrough ``` **Technical deep-dive:** ``` Minimal ambient electronic, 80 BPM, A minor, soft Rhodes piano and subtle bass, contemplative and focused, background music for technical explanation ``` ## Prompting Rules 1. **Always include "background" or "underscore"** — tells the model to stay dynamically even 2. **Always use instrumental mode** — lyrics compete with narration 3. **Specify BPM explicitly** — don't rely on genre to set tempo 4. **Avoid "bright hi-hats" or "prominent vocals"** — high-frequency busy elements compete with speech in the 2-4 kHz intelligibility band 5. **Include energy direction** — "steady energy" for explainers, "building gradually" for reveals ## Duration Matching - Generate at the exact video duration when possible - For longer videos, generate a track 30-60% of video length and loop with crossfade - **Section-mapped scoring** for videos with distinct acts: | Video Section | Duration | Music Style | |--------------|----------|-------------| | Intro / hook | 8-10s | Soft, building | | Main explanation | 90-120s | Steady, neutral | | Key reveal | 20-30s | Intensified, fuller | | Outro | 10-15s | Fading, gentle | Generate each as a separate track and crossfade between them. ## Looping ```bash # Loop a track 3x ffmpeg -stream_loop 2 -i music.mp3 -c copy music_looped.mp3 # Add crossfade at loop points (2s fade) ffmpeg -i music.mp3 -af "afade=t=out:st=28:d=2" part1.mp3 ffmpeg -i music.mp3 -af "afade=t=in:d=2" part2.mp3 # Then concat ``` Better approach: generate at the exact video duration to avoid loop artifacts. ## Integration with Video - Duck music 18-20 dB below narration during speech - Cut 2-4 kHz on the music bed to clear speech intelligibility band - Test on phone speakers — if narration disappears behind music, duck more - One track per video — avoid switching styles mid-video unless clear narrative shift - Music should start at video start and fade out 2-3 seconds before end --- ## Kolbo MCP Integration | Task | Kolbo MCP Tool | Notes | |------|---------------|-------| | Generate music | `generate_music` | Use prompt structure above | | Instrumental | `generate_music` instrumental=true | Always for video background | | With lyrics | `generate_music` lyrics="..." | Pass actual lyric text | | Discover models | `list_models` type="music" | Check available music models | | Sound effects | `generate_sound` | For whooshes, impacts, ambience | **Workflow:** 1. `list_models` type="music" → pick model or auto-select 2. Write prompt using the BPM/key/mood tables above 3. `generate_music` with `instrumental: true`, style tags, duration 4. Download the result and mix with narration using FFmpeg (see `sound-design` skill) --- ## Local / Free Options > **IMPORTANT:** Always use Kolbo MCP `generate_music` by default. Only mention these if the user explicitly asks for free alternatives. Confirm before installing anything. **Free music libraries (no install, browser-based):** - Pixabay Music — free, no attribution required - Free Music Archive — CC-licensed - Incompetech (Kevin MacLeod) — CC-BY, huge catalog **Local generation:** If the user has a GPU (8GB+) and explicitly asks, `MusicGen` by Meta (`pip install audiocraft`) can generate music locally. Confirm before installing.