We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm looking for using this in a project, yet finding difficulties looking for what I need.
Are there any documentations / sample code for using them? Thanks!
The text was updated successfully, but these errors were encountered:
Hello, thanks for your interest!
API documentation is a bit lacking, but here’s a quick overview of usage:
Create a bms.BMSChart object using bms.Compiler
bms.BMSChart
bms.Compiler
const bmsSource = `#00101:01\n...` const compileResult = bms.Compiler.compile(bmsSource) const chart = compileResult.chart
The BMSChart contains the raw BMS data (headers, objects, and timeSignatures) with minimal interpretation.
headers
objects
timeSignatures
Use chart.measureToBeat to convert (measure, fractionInsideMeasure) to beat number. This is important as most functions work on beat number.
chart.measureToBeat
(measure, fractionInsideMeasure)
To extract information from BMS, use the designated classes. These classes have a static method fromBMSChart that you can use.
fromBMSChart
Timing.fromBMSChart(chart)
Notes.fromBMSChart(chart)
SongInfo.fromBMSChart(chart)
Keysounds.fromBMSChart(chart)
Positioning.fromBMSChart(chart)
Spacing.fromBMSChart(chart)
To use these objects, I recommend trying playing with them in your JavaScript console!
Here are some resources that may help:
If you need specific help, feel free to ask. 😄
Sorry, something went wrong.
No branches or pull requests
Hi, I'm looking for using this in a project, yet finding difficulties looking for what I need.
Are there any documentations / sample code for using them? Thanks!
The text was updated successfully, but these errors were encountered: