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.
Thank you very much for the link, I will check it out. I was thinking I can grab them using id or class selectors from the divs but I couldn’t find that information on the source code.
Oh I’ve checked that code but couldn’t grab midi data from it, please check out yourself, just show me how to grab one information and I’ll be ok to do the rest. Thanks
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+.
I’ve looked at that to the best of my abilities but I couldn’t determine the variable that contains the data. Please help me just grab one property e.g velocity, name, ticks, time etc
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.