Giter VIP home page Giter VIP logo

Comments (5)

surikov avatar surikov commented on May 22, 2024

Look to https://github.com/nfroidure/midifile
for information about MIDIFile.js

from webaudiofont.

camiloperezv avatar camiloperezv commented on May 22, 2024

I installed midifile as you suggest using npm, but this library does not has the method parseSong, did you use a custom release or something?

from webaudiofont.

surikov avatar surikov commented on May 22, 2024

I didn't suggest you install midifile.

Look to source of examples.

from webaudiofont.

camiloperezv avatar camiloperezv commented on May 22, 2024

I was looking https://surikov.github.io/webaudiofont/examples/midiplayer.html# This example loads a file using midiFile module.

Look to https://github.com/nfroidure/midifile

But the midifile you use there is different to the github midifile, because of the parseSong.

I looked into the nfroidure/midifile and didn't find the parseSong function.

The code is

var arrayBuffer = xmlHttpRequest.response;
var midiFile = new MIDIFile(arrayBuffer);
var song = midiFile.parseSong();
startLoad(song);

There is any example of this library which uses the raw MIDIFile loaded by var midiFile = new MIDIFile(arrayBuffer); and not using midiFile.parseSong();

from webaudiofont.

surikov avatar surikov commented on May 22, 2024

I don't support https://github.com/nfroidure/midifile
WebAudioFont is the sound library but not a MIDI library.

Write your own parsing routine or copy it from my example. This is very small piece of code.

from webaudiofont.

Related Issues (20)

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.