Merge pull request from ericrosenbaum/bugfix/load-tempo-from-sb2

Load tempo from sb2
This commit is contained in:
Eric Rosenbaum 2018-03-01 13:20:37 -05:00 committed by GitHub
commit 5d658b5ecb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 13 deletions
src/serialization

View file

@ -320,6 +320,9 @@ const parseScratchObject = function (object, runtime, extensions, topLevel) {
target.rotationStyle = RenderedTarget.ROTATION_STYLE_ALL_AROUND;
}
}
if (object.hasOwnProperty('tempoBPM')) {
target.tempo = object.tempoBPM;
}
target.isStage = topLevel;