Code Monkey home page Code Monkey logo

score-library's Introduction

score-library

parse MusicXML & renderer it on HTML5 Canvas!

Fork from score-library

Thanks to Xiong Wenjie

score-library's People

Contributors

navigator117 avatar wnp avatar

Stargazers

Kane Wang (王康) avatar  avatar  avatar

Watchers

ledimeo.casa avatar Elias Zolotas avatar  avatar

Forkers

freetomik

score-library's Issues

Uncaught TypeError: Cannot call method 'H' of undefined... scorediv-latest.js:574

Hi,

When parsing my own musicxml files I keep getting the error:
Uncaught TypeError: Cannot call method 'H' of undefined          
scorediv-latest.js:574
This is with the online preview and using a local document.

When using the online version, I can get the score to render if I use the 
navigation controls to go to the last page of the document and then back to the 
beginning.
I have attached a copy of the file for you :)

My current setup is: Mac OSX 10.6.8 and Google Chrome Version 21.0.1180.89.

Cheers 

Ross

Original issue reported on code.google.com by [email protected] on 23 Sep 2012 at 6:47

Attachments:

incorrect display of unpitched notes

Hi, 

Firstly, I would like to say I love what you've got done with the program, so 
far.
I am currently working on a smaller scale musicxml parser with the use of 
vexflow, however, I would say that your program is already exceeding that of 
vexflow. 
Before I continue there are a couple more things I have come across, but I will 
put them in separate issues for you.

When using a musicxml document that uses percussion, the xml uses:
note > unpitched > display step
instead of note > pitch > step

This is causing all notes to be displayed as a B on the stave.

Ross

Original issue reported on code.google.com by [email protected] on 23 Sep 2012 at 6:38

Supporting for MusicXML v3.

Hi!

Are you planning to add support for (the two year old) MusicXML Version 3.  
format?

<score-partwise version="3.0">

Cheers,
Peter



Original issue reported on code.google.com by [email protected] on 17 Jul 2013 at 1:45

Object #<Object> has no method 'apply'

HI,

I've download the example and also the code from svn, when using chrome i get 
this error randomly (the stachtrace is shown below), i get it using the 
example, or using the version i've compiled using closure compiler. I'm trying 
to figure it out , the problem is localized in scorediv.js when calling 
functor.apply

ScoreLibrary.delegate = function(target, source) {

    ScoreLibrary.aggregate(target, ScoreLibrary.Delegate);

    var functor_generator = function(functor) {

        return function() {

            return functor.apply(
                this.getDelegate(), arguments);
        };
    };

    var tgt_proto = target.prototype;
    var src_proto = source.prototype;

    for (var prop in src_proto) {

        var property = src_proto[prop];

        if (typeof property === 'function' && prop !== 'constructor') {

            tgt_proto[prop] = functor_generator(property);
        }
    }
};


the last function in the stack trace changes randomly for example i've got 
these error in the following calls :
ScoreLibrary.DurationMapper.save
ScoreLibrary.DurationMapper.restore
ScoreLibrary.DurationKeyGenerator.generate

someone could help or give some hints in order to let me keep going with 
investigation? I'm trying to get into delegating mechanism to understand the 
problem



Stacktrace
-----------
Uncaught TypeError: Object #<Object> has no method 'apply' 
scorediv-nocompiled.js:15212
(anonymous function) scorediv-nocompiled.js:15212
ScoreLibrary.DurationMapper.setInformation scorediv-nocompiled.js:35203
(anonymous function) scorediv-nocompiled.js:15212
ScoreLibrary.Renderer.DurationPacker.recordPackStyles 
scorediv-nocompiled.js:35600
ScoreLibrary.Renderer.PaintablePacker.pack scorediv-nocompiled.js:26842
ScoreLibrary.Renderer.DurationPacker.pack scorediv-nocompiled.js:35552
ScoreLibrary.Engraver.Note.engraveStemPlaceHolder scorediv-nocompiled.js:40579
ScoreLibrary.Score.Beam.StemLengthPolicy.applyToNote 
scorediv-nocompiled.js:42796
(anonymous function) scorediv-nocompiled.js:30008
(anonymous function) scorediv-nocompiled.js:30004
ScoreLibrary.Score.Connector.applyPolicesToNotes scorediv-nocompiled.js:30000
ScoreLibrary.Score.Beam.prepareEngrave scorediv-nocompiled.js:43007
(anonymous function) scorediv-nocompiled.js:51517
ScoreLibrary.Engraver.Part.engraveConnectors scorediv-nocompiled.js:51479
(anonymous function) scorediv-nocompiled.js:51407
ScoreLibrary.Engraver.Part.engrave scorediv-nocompiled.js:51376
ScoreLibrary.Engraver.Liner.SystemListLazyIter.lazyNext 
scorediv-nocompiled.js:52182
ScoreLibrary.Engraver.Liner.SystemListLazyIter.next scorediv-nocompiled.js:52078
ScoreLibrary.Engraver.Pager.PageListLazyIter.lazyNext 
scorediv-nocompiled.js:52361
ScoreLibrary.Engraver.Pager.PageListLazyIter.next scorediv-nocompiled.js:52334
ScoreLibrary.ScoreDiv.hasNextPage scorediv-nocompiled.js:53348
ScoreLibrary.ScoreDiv.showToolbar scorediv-nocompiled.js:53029
ScoreLibrary.ScoreDiv.callbackScore scorediv-nocompiled.js:53610
ScoreLibrary.MusicXMLLoader.callbackSuccess scorediv-nocompiled.js:52749
fire jquery-1.7.1.js:1046
self.fireWith jquery-1.7.1.js:1164
done jquery-1.7.1.js:7399
callback jquery-1.7.1.js:8180

Original issue reported on code.google.com by [email protected] on 18 Aug 2013 at 8:44

Chords

Tool testet with Jazz Standard:

http://tmp.jung.ms/scores/

There are errors in the Chords like 77...

Regards
Matthias

Original issue reported on code.google.com by [email protected] on 20 May 2013 at 10:28

Cannot call method 'O' of undefined

I'm running the example project score-viewer but having "Cannot call method 'O' 
of undefined". I have the project up on my test website here: 
http://kennyvdesigns.com/musicxml/score-viewer.html

Thanks.

Original issue reported on code.google.com by [email protected] on 2 May 2013 at 3:06

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.