Hi , I am trying to grab midi information from a parsed midi file, the code easily parses any midi file to JSON using tone.js but I don’t know how they extracted the midi information like note, velocity, time etc. I want to grab them myself so that I can modify them,please help me.
This is the link to my project.
You can download midi files from this link to test the app.
I don’t understand? Do you mean how to access the JsonObject and its content ?
First of all I would take out the js code from the html an put it into the sketch.js.
Start simple by putting a single midi to the data folder and load from there.
The midi object is the Json which can be accessed the way shown in the parseFile function line ~153+.
Thank you very much sir, you have done a very great job and I appreciate your efforts for a task well done. I will also like to add a file upload button so the app can upload a local file into it when clicked.
God bless you for your invaluable help. Have a great weekend.
Glad it helped!
Would you please be kind and mark the answer as a solution to your question to show that it solves your problem if so.
Also it might help other people which are looking for it to see that it isn’t an open question.