Skip to content

Commit

Permalink
Restructuring and cleanup.
Browse files Browse the repository at this point in the history
Restructuring and cleanup.

Restructuring and cleanup.

Moved subtitle and subartists.
  • Loading branch information
DJKero committed Jul 6, 2022
1 parent 605051d commit 190dc09
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# bmson-spec

[![Documentation Status](https://readthedocs.org/projects/bmson-spec-fork/badge/?version=latest)](http://bmson-spec-fork.readthedocs.org/en/latest/?badge=latest)
[![Documentation Status](https://readthedocs.org/projects/bmson-spec/badge/?version=master)](http://bmson-spec.readthedocs.org/en/master/?badge=master)

This is a technical specification document for bmson format.

The compiled document is here: http://bmson-spec-fork.readthedocs.org/
The compiled document is here: http://bmson-spec.readthedocs.org/

Pull requests are welcome.
59 changes: 30 additions & 29 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ The format follows `Web IDL (Second Edition)`_
// header information
dictionary SongInfo {
DOMString title; // self-explanatory
DOMString subtitle = ""; // self-explanatory
DOMString artist; // self-explanatory
DOMString[]? subartists = []; // ["key:value"]
DOMString genre; // self-explanatory
}
// chart info
dictionary ChartInfo {
DOMString chart_name; // e.g. "HYPER", "FOUR DIMENSIONS"
unsigned long level; // self-explanatory
DOMString? eyecatch_image; // eyecatch image filename
DOMString? banner_image; // banner image filename
DOMString? back_image; // background image filename
DOMString? preview_music; // preview music filename
BGA bga; // bga data
DOMString subtitle = ""; // self-explanatory
DOMString[]? subartists = []; // ["key:value"]
DOMString chart_name; // e.g. "HYPER", "FOUR DIMENSIONS"
unsigned long level; // self-explanatory
DOMString? eyecatch_image; // eyecatch image filename
DOMString? banner_image; // banner image filename
DOMString? back_image; // background image filename
DOMString? preview_music; // preview music filename
BGA bga; // bga data
}
// chart data
Expand Down Expand Up @@ -164,6 +164,8 @@ Breaking Changes

- Separate ``BmsonInfo`` into ``SongInfo`` and ``ChartInfo``

- ``BmsonInfo.subtitle`` is now ``ChartInfo.subtitle``
- ``BmsonInfo.subartists`` is now ``ChartInfo.subartists``
- ``BmsonInfo.mode_hint`` is now ``ChartInfo.mode_hint``
- ``BmsonInfo.chart_name`` is now ``ChartInfo.chart_name``
- ``BmsonInfo.level`` is now ``ChartInfo.level``
Expand Down Expand Up @@ -335,14 +337,6 @@ title :: DOMString

- The implementor *need not* slice title string by delimiters (such as ``()``, ``--``)

subtitle :: DOMString
This is the subtitle of song that will be displayed.

Default value is an empty string.

- It is usually shown as a smaller text than ``title``.
- Multiple line subtitle may be possible by including a newline character ``\n``

artist :: DOMString
This is the primary artist that will be displayed.

Expand All @@ -352,6 +346,20 @@ artist :: DOMString
- ``Artist1 vs Artist2``
- ``Artist1 feat. Vocalist``

genre :: DOMString
This is the genre of the song.

Chart Information Object (ChartInfo)
====================================

subtitle :: DOMString
This is the subtitle of song that will be displayed.

Default value is an empty string.

- It is usually shown as a smaller text than ``title``.
- Multiple line subtitle may be possible by including a newline character ``\n``

subartists :: DOMString[]
Other artists that help authored this bmson file.

Expand All @@ -369,18 +377,6 @@ subartists :: DOMString[]

.. _BMserver: http://bms.main.jp/

genre :: DOMString
This is the genre of the song.

preview\_music :: DOMString
The path to an short audio file which preview the music.

- If ``preview_music`` is not specified, player can create preview from ``sound_channels``.


Chart Information Object (ChartInfo)
====================================

chart\_name :: DOMString
This is the chart name.

Expand Down Expand Up @@ -423,6 +419,11 @@ back\_image :: DOMString

.. _`Toy Musical 2`: https://www.youtube.com/watch?v=8mDNzrQBlBY

preview\_music :: DOMString
The path to an short audio file which preview the music.

- If ``preview_music`` is not specified, player can create preview from ``sound_channels``.

Chart Data Object (ChartData)
==============================

Expand Down

0 comments on commit 190dc09

Please sign in to comment.