0

I'm kind of a noob to this kind of thing. I'm interested in using MIDI.js (https://github.com/mudcube/MIDI.js/) to build a musical web app, not too different from the demos they have listed and downloadable.

My expectation of MIDI.js, which is not well documented, is that it would be a bunch of javascript code that I can use, sort of like jquery.

So I don't have an understanding of the role of a "build" folder, or node.js, or a gruntfile (barely know what that is).

My question is, what is their to build? There are several example html files (with js) included in the download that run right away on my local apache server, so what is left to be built?

Thanks

1 Answer 1

1

From the repo it looks like the build step simply concatenates the various source files into a single MIDI.js file as well as creating the minified version.

Sign up to request clarification or add additional context in comments.

2 Comments

I haven't done any building, but in the build folder in my clone of the repo, there already is a MIDI.js and MIDI.min.js file. MIDI.js is over 1300 lines of code...so it seems like it's already 'built'. Would that mean the Gruntfile.js is for rebuilding it if I make changes to the files that get concatenated into MIDI.js?
That's correct. It's pretty typical to include the gruntfile in js libraries, for example you may want to add your own tasks, such as jslint, or incorporate the libraries build step as part of a larger project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.