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
步骤
- Validate input (audio file or JSON)
- Generate Dreamina prompts:
bash
python3 -m music_analyzer dreamina "<input_path>"-
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)
-
Suggest usingwith the generated prompts to create actual images
/dreamina-gen-image
- 验证输入(音频文件或JSON)
- 生成Dreamina提示词:
bash
python3 -m music_analyzer dreamina "<input_path>"-
按段落展示提示词:
- 段落名称和时间范围
- 中文提示词(prompt_zh)——可直接用于Dreamina
- 英文提示词(prompt_en)
- 风格关键词和调色板
- 能量等级(0-1)
-
建议使用生成的提示词配合命令来创建实际图像
/dreamina-gen-image
Mapping Logic
映射逻辑
| Music Feature | Dreamina Parameter | Example |
|---|---|---|
| Emotion | Style keywords | happy → "明亮暖色调,活力" |
| Energy | Composition intensity | high → "动态构图,强对比" |
| BPM | Rhythm description | >140 → "激烈节奏" |
| Key/Mode | Brightness/darkness | major → "明亮基调" |
| Genre | Visual style | electronic → "赛博朋克,霓虹" |
| Section | Scene sequence | chorus → 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 from the pull-film plugin to create actual Dreamina images.
/dreamina-gen-image生成的提示词可直接与pull-film插件的命令配合使用,以创建实际的Dreamina图像。
/dreamina-gen-image