music-box-offline
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "music-box-offline" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b14c63ed45d2b5c66c491d62fca047dac3f8fe7c064354006a6148000a5afa8a. Verify the upstream source and version against https://skillhub.cn/skills/user_6adc9107/music-box-offline before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Provide a one-line description of mood/style/purpose; the AI converts it into a minimal score and generates a self-contained offline-in-browser HTML (with karaoke word-by-word highlighting) and a standard MIDI file—no platform, no API key, no network required.
Introduction source: third_party · user_6adc9107 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Inputs and outputs
- Translation pending; see source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "music-box-offline"
description: 一句话描述情绪/风格/用途,AI 帮你写成极简谱面,一键生成「浏览器离线即响的自包含 HTML(带歌词卡拉OK逐字高亮)」和「标准 MIDI」——零平台、零 API Key、零联网。Music Box — 纯本地旋律生成器
把"一句话需求"直接变成能听见、可预览、可编辑的音乐,全程不碰任何平台。
与
song-generator/song-creator的区别:那两个依赖 Suno / FAL.AI(要 API Key、联网、额度、下载 MP3)。 本 skill 用代码在本地合成——产出自包含 HTML(浏览器即响) 和 标准 MIDI,装到任何 AI 编程工具里都能立刻跑。
When to Use
当用户想要一段音乐 / 旋律,且更看重"快、能直接听、能改、不依赖平台"时触发:
- "帮我做个轻快的游戏 BGM 循环"
- "写个播客片头音乐,10 秒左右"
- "生成一段放松的 lo-fi 背景音"
- "做个手机通知提示音 / 庆祝音效"
- "给我写个 C 大调的小曲子,8 小节"
- 用户明确表示不想接 Suno / FAL / 不想配 API Key / 想要离线方案
When NOT to Use
- 用户要带真人声的完整歌曲并要发行 → 用
song-generator(Suno)或song-creator(FAL.AI) - 用户只要歌词/文案、不要声音 → 直接写文字即可
前置条件
只需要 Python 3 标准库,无需 pip install、无需网络、无需任何 Key。
播放 HTML 只需要一个浏览器(AI 编程工具自带的预览面板即可)。
工作流
用户描述需求(情绪 / 风格 / 用途 / 时长 / 调式)
│
▼
Step 1: 你(AI)把需求翻译成「极简谱面」
│ - 选调式与和弦进行(参考 references/tune_format.md 作曲小抄)
│ - 写 4/8/16 小节的旋律音符串
│ - 写给一个 .txt(见下「谱面模板」)
│
▼
Step 2: 编译
│ python3 scripts/build.py <谱面.txt>
│ → 同目录得到 <名>.html(可播放)和 <名>.mid(可编曲)
│
▼
Step 3: 把 HTML 用文件展示工具呈现给用户试听
│ (MIDI 一并给出,方便导入 DAW 精修)
▼
Step 4: 用户要改 → 改 .txt 重跑 Step 2,直到满意
谱面模板(你照着填)
保存为 my_tune.txt:
TITLE: 晴天小循环
TEMPO: 120
WAVE: triangle
BASS: true
CHORDS: C G Am F
NOTES:
C4e E4e G4e C5e | G4q E4q Rq
A4e C5e E5e C5e | F4q D4q Rq
F4e A4e C5e A4e | G4q E4q Rq
G4e B4e D5e B4e | C5h Rq
完整格式与作曲技巧见 references/tune_format.md(音名/时值/和弦记法 + 风格→参数速查)。
编译命令
# 默认:同目录生成 HTML + MIDI
python3 "<本Skill目录>/scripts/build.py" my_tune.txt
# 指定输出目录
python3 "<本Skill目录>/scripts/build.py" my_tune.txt --out ./dist
# 只要 HTML(不要 MIDI)
python3 "<本Skill目录>/scripts/build.py" my_tune.txt --no-midi
Windows 上若
python3不在 PATH,用python或 WorkBuddy 内置 Python 完整路径调用。
产出说明
- *`.html
**:自包含播放器,纯 Web Audio 合成,**离线即可双击播放**。带 播放 / 停止 / 循环 / 音量 控件与钢琴卷帘可视化,以及**歌词随音符逐字高亮的卡拉OK效果**(谱面里写了歌词才显示)。想再改曲子,直接编辑 HTML 里的<script id="tune-data" type="application/json">` 后刷新即可。 - *`.mid`**:标准 MIDI 文件,任意播放器可播,也可导入 GarageBand / FL Studio / Ableton 等 DAW 替换音色、精修编曲。
风格 → 参数速查(写谱面时参考)
| 用途 | TEMPO | WAVE | 和弦示例 | 要点 |
|---|---|---|---|---|
| 游戏 BGM / 循环 | 120–140 | square / triangle | C G Am F | 4–8 小节循环,e 多一点 |
| 播客 / 视频片头 | 100–120 | triangle | C Am F G | 8–16 小节,起止明确 |
| 放松 / lo-fi | 70–90 | sine | Am F C G | 慢、多 R 留白 |
| 庆祝 / 提示音 | 110–130 | square | C G C | 明亮大调,h 收尾干脆 |
| 伤感 / 叙事 | 70–90 | triangle | Am F C G | 小调、音域走低 |
资源文件
| 文件 | 用途 |
|---|---|
scripts/build.py |
谱面 → HTML + MIDI 编译器(纯标准库,无依赖) |
references/player.html |
自包含 Web Audio 播放器模板(build.py 会注入谱面) |
references/tune_format.md |
极简谱面格式规范 + 作曲小抄 |
安装与分发
- 本 skill 是自包含目录,直接放进 AI 编程工具的 skills 目录即可启用(如 WorkBuddy
~/.workbuddy/skills/或项目.workbuddy/skills/)。 - 无外部依赖、无密钥,任何人装上就能用。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完全离线的音乐生成方案,与依赖 API 的同类工具形成差异化
- 支持生成可直接播放的 HTML 和标准 MIDI,满足快速试听与专业编曲双重需求
Highlights
- 触发场景描述清晰,涵盖游戏 BGM、播客片头、提示音等多种典型用例
- 明确区分了与 song-generator 等联网工具的适用边界
Highlights
- 文档结构完整,包含完整的工作流、模板、命令说明和资源清单
- 提供风格速查表,极大降低用户使用门槛
Highlights
- 纯 Python 标准库实现,零依赖,跨平台兼容性好
- 编译脚本支持多种参数选项,灵活性强
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 31 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 3, 10, 22, 117
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.