bms-rs
The BMS format parser.
Be-Music Source, called BMS for short, is a file format devised by Urao Yane in 1998 for a simulator of the game Beatmania by KONAMI. This describes what and when notes are arranged and its music metadata. It is a plain text file with some "command" lines starting with # character.
About the format
Command
Each command starts with # character, and other lines will be ignored. Some commands require arguments separated by whitespace character such as spaces or tabs.
#PLAYER 1
#GENRE FUGA
#TITLE BAR(^^)
#ARTIST MikuroXina
#BPM 120
#PLAYLEVEL 6
#RANK 2
#WAV01 hoge.WAV
#WAV02 foo.WAV
#WAV03 bar.WAV
#00211:0303030303
Header command
Header commands are used to express the metadata of the music or the definition for note arrangement.
Message command
Message command starts with #XXXYY:ZZ.... XXX is the number of the measure, YY is the channel of the message, and ZZ... is the object id sequence.
The measure must start from 1, but some player may allow the 0 measure (i.e. Lunatic Rave 2).
The channel commonly expresses what the lane be arranged the note to.
The object id is formed by 2-digit of 36-radix ([0-9a-zA-Z]) integer. So the sequence length must be an even number. The 00 object id is the special id, expresses the rest (no object lies). The object lies on the position divided equally by how many the object is in the measure. For example:
#00211:0303000303
This will be placed as:
003|--|--------------|
| |03 |
| |03 |
| | |
| |03 |
002|--|03------------|
| | [] [] [] |
|()|[] [] [] []|
|-----------------|
Usage
- For usage of the latest release version, see docs.rs.
- For usage of the latest commit version, see lib.rs
BMS Format Reference
- (Main) BMS command memo (JP/EN)
- These below are its references.
- Wiki
- wiki.bms.ms(Archive)
- First Version By Urao Yane
- https://nvyu.net/rdm/rby_ex.php
- https://cosmic.mearie.org/f/sonorous/bmsexts
- http://dtxmania.net/wiki.cgi?page=qa_dtx_spec_e
- https://cosmic.mearie.org/2005/03/bmsguide/
- https://github.com/lifthrasiir/angolmois/blob/master/INTERNALS.md
- RDM's LONG NOTE support
- http://right-stick.sub.jp/lr2skinhelp.html
- Bemuse Extensions
- For
#SCROLL #EXTsupport has been removed because of lack specification.
- For
- Base62
- Beatoraja Extensions