Skip to content

Jerry-1031/Dynamite-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamite-Tools

Some useful tools of the fanmade music game Dynamite.

converter

Convert Maimai charts to Dynamix/Dynamite XML map.

将舞萌 DX 的谱面转为 Dynamix/Dynamite XML 的谱面。

Usage / 用法

  1. 打开 converter.py,直接修改其中的谱面内容(注意将 &inote_6= 和第一行谱面分两行写,否则将会识别不出 BPM),并运行该文件;
  2. 运行输出的文件格式为 Dynamaker 谱面,不支持直接导入游玩;请先导入至 Dynode,再导出为实机谱面游玩。

Rules / 映射规则

1-8 号键从右至左映射为 Dym 位置 4.9 至 -0.7(对应实际位置为 5.3 至 -0.3,对应参数可调)。

Tap

直接转换为NORMAL。

Hold

转换为 HOLD 和 SUB 对。

Slide / 星星

转为 NORMAL 和 CHAIN 的组合,初键位转为 NORMAL,之后均为 CHAIN。CHAIN 的间隔为参数 slide_chain_interval_beats 可调(默认为 0.125 = 32 分),各个 CHAIN 的位置从初键位到末键位线性均匀变化。

  • 直线型(包括 - 和所有未指定的 v, p, q, s, z, w, V, pp, qq, ^):CHAIN 从初键位直接滑到末键位,不出屏幕;
  • 圆弧型(<>):方向同舞萌谱面规则,若为 <,则:
    • 初始键位为 1,2,7,8:按键位递减移动;
    • 初始键位为 3,4,5,6:按键位递增移动。
    • >< 相反,初始键位为 1278 则递增移动,为 3456 则递减移动。若出屏幕自动转到另一边。
  • 多段/并发星星:支持解析 *(并发)和 -(串联)连接的复杂星星。

Break / 绝赞

若某个音符含绝赞,则将该音符复制为 3 份(默认,可在程序中修改)。

其他类型

暂不支持。因为没想到合适的转换方法。欢迎反馈。

BPM 转换

完全支持。欢迎反馈 BUG。
若包含多个 BPM 转换,请先导入至 Dynode,再导出为实机谱面游玩。

kps_plot

Script to parse a music game XML map file and plot the real-time Keys-Per-Second (KPS) curve.

绘制 Dynamite 谱面 KPS 图的工具。

Usage

python kps_plot.py path/to/map.xml [--window 1.0] [--step 0.1] [--output kps.png] [--width 10] [--unicode]
Options:
    --window   Size of the sliding window in seconds (default: 1.0) (Unit: s)
    --step     Step size in seconds for sampling (default: 0.1) (Unit: s)
    --output   Path to save the output plot image (if omitted, displays interactively)
    --width    Width of the plot figure (default: 10)
    --unicode  Use SimHei font for Unicode character support (e.g., Chinese)

[] 内的内容为可选内容,不填为默认。

  • --window 参数为滑动窗口长度,表示每次取 窗口长度 内 note 个数的平均值,默认为 1.0
  • --step 参数为采样间隔,表示每 采样间隔 秒计算一次,默认为 0.1
  • --output 参数为输出图片名,如不填则直接显示绘图窗口;
  • --width 参数为图表宽度,对于稍长的歌曲可调大些,默认为 10
  • --unicode 参数为是否为中文歌曲名提供支持,默认关闭。

实例

Example 1 不另存为图片,直接显示绘图窗口:

python kps_plot.py "Faded.xml"

Example 2 另存为 scy.png,滑动窗口长度调至 2.0 秒,绘图窗口宽度调至 20(适用于较长歌曲):

python kps_plot.py "Little Seed, Arrival.xml" --window 2.0 --output scy.png --width 20

Example 3 另存为 hajimi.png,滑动窗口长度调至 0.5 秒,启用中文支持:

python kps_plot.py "Ten_Sides_Hachimi.xml" --window 0.5 --output hajimi.png --unicode

更多谱面见 charts 目录中内容。

pez2dyn

Convert Phigros fanmade chart(.pez) to Dynode file(.dyn).

将 Phigros 自制谱面(.pez)转换为 Dynode 谱面(.dyn)的工具。

Tested:

  • 2024 April Fool's Day Chart
  • RinFall's Dan 1-3

Features:

  • Support multiple bpm (2024/8/17 updated)

TODO:

  • Support formatVersion 3

Usage

  • Unzip .pez file, get .json file and .wav/.mp3/.ogg file;
  • Put .json, .wav/.mp3/.ogg and this pez2dyn.py file in a same directory;
  • Change input_file_name and output_file_name;
  • Choose which judgeline you want to convert;
  • Execute this Python file and get output;
  • Open the output with Dynode, press F5 to export .xml file.

Special Thanks

Dynode

midi2xml

Convert midi files to Dynamite charts (.xml).

将 midi 文件按音高转换为 Dynamite 谱面的工具。

Usage

  • midi2xml.py 与 midi 文件放在同一目录下;
  • 修改 midi2xml.py 中的 name 修改为 midi 文件名,并对其它参数进行必要的修改;
  • 运行并获取谱面输出。

About

Some useful tools of the fanmade music game Dynamite.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages