Git Product home page Git Product logo

smparse's Introduction

SMParse

A web-based parser for StepMania chart files. Supports SM and SSC files.

Web UI

Drag a chart file onto the page to load its tags and render the steps.

Requirements

Node.js module

The SMParse class is provided by parser.js, which can be loaded independently:

var SMParse = require("path/to/parser");
require("fs").readFile("path/to/chart.ssc", function(err, data) {
    var parse = new SMParse(data);
});

Data structure

{
    meta: {title, subtitle, artist, credit, origin, cd, genre, type: [format, version], select},
    files: {banner, jacket, cd, disc, video, bg, music, lyrics},
    times: {offset, sample: {start, length}, labels},
    changes: {bpm, stop, delay, warp, timesig, tick, combo, speed, scroll, fake, key, attack, bg, fg},
    charts: [{name, credit, type, desc, style, diff, meter, data, radar, notes}],
    raw
}

smparse's People

Contributors

terrance avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

smparse's Issues

`TypeError: Cannot read property 'trim' of undefined` at `parser.js:21:62`

Hello. Not sure if it's a malformed .sm file or an issue with the code. Just in case, posting here

the chart which causes parser to fail:

HUNTING FOR YOU.sm

DancingStage%20SuperNOVA.zip
Hunting For You
Main script failed TypeError: Cannot read property 'trim' of undefined
    at new SMParse (/home/klesun/gits/klesun-productions.com/node_modules/SMParse/SMParse/res/js/parser.js:21:62)
    at collectSongIndex (/home/klesun/gits/klesun-productions.com/entry/ddr-songs-browser/scripts/collect_songs_index.cjs:36:20)
    at async Promise.all (index 34)
    at async collectSubdirIndex (/home/klesun/gits/klesun-productions.com/entry/ddr-songs-browser/scripts/collect_songs_index.cjs:93:19)
    at async Promise.all (index 0)
    at async collectPackIndex (/home/klesun/gits/klesun-productions.com/entry/ddr-songs-browser/scripts/collect_songs_index.cjs:113:24)
    at async main (/home/klesun/gits/klesun-productions.com/entry/ddr-songs-browser/scripts/collect_songs_index.cjs:135:27)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.