npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bms

v51.0.0

Published

BMS Parser for JavaScript

Downloads

77

Readme


A Be-Music Source file-format parser. It is made primarily for usage in Bemuse.

Usage

Documentation has been lacking. For now, please see issue 26 for preliminary usage notes.

BMS Parsing Stages

BMS will be parsed in three stages:

  1. Use bms.Reader to turn a Buffer with BMS file content into a String.
  2. Use bms.Compiler to compile the String into a BMSChart.
    • Syntax-level processing is done here, such as:
      • #RANDOM
      • #SETRANDOM
      • #SWITCH
    • Results in three primary data structures:
      • headers contains all BMS headers
      • objects contains all BMS objects on the timeline.
      • timeSignature contains the time signature information.
        • also allows converting from measure+fraction to beat
  3. BMSChart contains all information needed to further process the song. These modules can then be used to extract information from BMSChart.
    • SongInfo allows looking up title, subtitle, artist, maker, and genre.
      • Implicit/multiplex subtitles taken into account here.
    • Timing allows conversion from beat to seconds.
      • BPM, BPM changes, STOP objects, and STP commands taken into account here.
    • Positioning allows conversion from beat to in-game position.
    • Notes parses the notechart, resulting in in-game notes.
      • Channel mapping is taken into consideration here.
      • Normal notes and long notes taken into account here.
      • Also emits list of notes to autoplay.

Other Utility Classes

  • Speedcore allows calculation of position and velocity over a linear graph.