Skip to content

Converts MML to beep music score. 转换MML乐谱到beep谱

License

Notifications You must be signed in to change notification settings

xfgryujk/mml2beep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mml2beep

Converts MML to beep music score. 转换MML乐谱到beep谱

MML(Music Macro Language)是一些在线游戏(如洛奇)的乐谱代码

beep谱指以[频率, 持续时间]表示一个音符的乐谱,用于蜂鸣器播放音乐

用法

usage: mml2beep.py [-h] [-t TRACK] [-f {json,cpp}] mml_file beep_file

转换MML乐谱到beep谱

positional arguments:
  mml_file              输入的MML文件,格式为txt
  beep_file             输出的beep文件路径。其中第一个数为频率(Hz),如果为0则表示延时。第二个数为持续时间(ms)

optional arguments:
  -h, --help            show this help message and exit
  -t TRACK, --track TRACK
                        输出第几个音轨,默认为1
  -f {json,cpp}, --format {json,cpp}
                        输出格式,默认为json

链接

About

Converts MML to beep music score. 转换MML乐谱到beep谱

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published