music-to-dreamina

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/music-to-dreamina — Music → Dreamina Prompts

/music-to-dreamina — 音乐 → Dreamina提示词

Convert music analysis into Dreamina-compatible image/video generation prompts. Each song section gets a tailored Chinese and English prompt with style keywords, color palette, and energy level.
将音乐分析结果转换为兼容Dreamina的图像/视频生成提示词。歌曲的每个段落都会生成量身定制的中英文提示词,包含风格关键词、调色板和能量等级。

Usage

使用方法

/music-to-dreamina <audio_file_or_analysis_json>
Accepts either an audio file (runs analysis first) or a previously saved analysis JSON.
/music-to-dreamina <audio_file_or_analysis_json>
支持输入音频文件(会先执行分析)或已保存的分析结果JSON文件。

Steps

步骤

  1. Validate input (audio file or JSON)
  2. Generate Dreamina prompts:
bash
python3 -m music_analyzer dreamina "<input_path>"
  1. Present per-section prompts:
    • Section name and time range
    • Chinese prompt (prompt_zh) — ready for Dreamina
    • English prompt (prompt_en)
    • Style keywords and color palette
    • Energy level (0-1)
  2. Suggest using
    /dreamina-gen-image
    with the generated prompts to create actual images
  1. 验证输入(音频文件或JSON)
  2. 生成Dreamina提示词:
bash
python3 -m music_analyzer dreamina "<input_path>"
  1. 按段落展示提示词:
    • 段落名称和时间范围
    • 中文提示词(prompt_zh)——可直接用于Dreamina
    • 英文提示词(prompt_en)
    • 风格关键词调色板
    • 能量等级(0-1)
  2. 建议使用生成的提示词配合
    /dreamina-gen-image
    命令来创建实际图像

Mapping Logic

映射逻辑

Music FeatureDreamina ParameterExample
EmotionStyle keywordshappy → "明亮暖色调,活力"
EnergyComposition intensityhigh → "动态构图,强对比"
BPMRhythm description>140 → "激烈节奏"
Key/ModeBrightness/darknessmajor → "明亮基调"
GenreVisual styleelectronic → "赛博朋克,霓虹"
SectionScene sequencechorus → stronger visuals
音乐特征Dreamina参数示例
情绪风格关键词欢快 → "明亮暖色调,活力"
能量构图强度高 → "动态构图,强对比"
BPM节奏描述>140 → "激烈节奏"
调式/调性明暗度大调 → "明亮基调"
流派视觉风格电子乐 → "赛博朋克,霓虹"
段落场景序列副歌 → 更强烈的视觉效果

Output Format

输出格式

Each section produces:
json
{
  "section": "chorus_1",
  "time_range": {"start": 45.2, "end": 72.8},
  "prompt_zh": "动态构图,明亮暖色调...",
  "prompt_en": "dynamic composition, bright warm tones...",
  "style_keywords": ["vibrant", "energetic"],
  "color_palette": ["#FFD700", "#FF6B35"],
  "energy_level": 0.85
}
每个段落会生成如下内容:
json
{
  "section": "chorus_1",
  "time_range": {"start": 45.2, "end": 72.8},
  "prompt_zh": "动态构图,明亮暖色调...",
  "prompt_en": "dynamic composition, bright warm tones...",
  "style_keywords": ["vibrant", "energetic"],
  "color_palette": ["#FFD700", "#FF6B35"],
  "energy_level": 0.85
}

Integration with pull-film

与pull-film集成

The generated prompts can be directly used with
/dreamina-gen-image
from the pull-film plugin to create actual Dreamina images.
生成的提示词可直接与pull-film插件的
/dreamina-gen-image
命令配合使用,以创建实际的Dreamina图像。