Skip to content

Commit

Permalink
Merge pull request #212 from bemusic/bmson1
Browse files Browse the repository at this point in the history
Add rudimentary support for bmson 1.0
  • Loading branch information
dtinth committed Nov 10, 2015
2 parents 7b42ebf + e48e578 commit ee4b4e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"bemuse-indexer": "^2.0.1",
"bluebird": "^2.9.10",
"bms": "^2.0.0",
"bmson": "^2.0.0",
"bytes": "^2.1.0",
"chance": "^0.7.3",
"classnames": "^2.1.3",
Expand Down
9 changes: 4 additions & 5 deletions src/bmson/notechart-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import BMS from 'bms'
export function load (source, options) {

let data = JSON.parse(source)
let songInfo = bmson.getSongInfo(data.info)
let timing = bmson.getTiming(data)
let score = bmson.getMusicalScore(data, timing)
let barLines = bmson.getBarLines(data.lines)
let songInfo = bmson.songInfoForBmson(data)
let score = bmson.musicalScoreForBmson(data)
let barLines = bmson.barLinesForBmson(data)

let stuff = {
notes: score.notes.all(),
timing,
timing: score.timing,
keysounds: score.keysounds,
songInfo,
positioning: new BMS.Positioning([
Expand Down

0 comments on commit ee4b4e9

Please sign in to comment.