github repo?

Low level MIDI support for Node.js
Post Reply
pearcemerritt
Posts: 5
Joined: Sun May 19, 2019 12:13 pm

github repo?

Post by pearcemerritt » Thu Jul 11, 2019 8:05 am

Is there a public github repo for jazz-midi?

sema
Site Admin
Posts: 398
Joined: Mon Oct 17, 2011 7:28 pm

Re: github repo?

Post by sema » Thu Jul 11, 2019 10:29 am

Not at the moment.
Do you have some ideas of its improvement?

pearcemerritt
Posts: 5
Joined: Sun May 19, 2019 12:13 pm

Re: github repo?

Post by pearcemerritt » Fri Jul 19, 2019 10:56 pm

Nah, I don't have any improvements per se, but I'm still interested in taking the command-line ear-training app that I've built using NodeJS and JZZ and putting it on my phone if we could get JZZ working with react native (as I asked about in another question). Looking into how NodeJS is actually producing sound, it seems like it is calling jazz-midi, which in turn is loading a C++ addon? Since the contents of the ".node" files seem like serialized objects that're unreadable to the human eye, it's hard to learn much about them (except for inspecting them in the runtime after they're loaded). Wondering if maybe native modules could be written to have a similar API to jazz-midi and if that would help JZZ to work with react native? But, without understanding more, by either seeing code or maybe finding some documentation I missed, I don't even know if my idea is a possibility. What do you think?

sema
Site Admin
Posts: 398
Joined: Mon Oct 17, 2011 7:28 pm

Re: github repo?

Post by sema » Mon Jul 22, 2019 8:00 am

Well, I think I could share C++ code if you really need it.
It is similar to that published with https://www.npmjs.com/package/midi-test
Unfortunately, there is no C++ version for mobile devices, only Windows / MacOS / Linux

However, I'm thinking to add the React-native to the future development roadmap.
Will take me a while to learn React and React-native :)

pearcemerritt
Posts: 5
Joined: Sun May 19, 2019 12:13 pm

Re: github repo?

Post by pearcemerritt » Wed Jul 24, 2019 2:52 pm

According to a quick google, it sounds like it is possible in some cases to use C++ code to make libraries for android and ios. If you published the C++ code maybe I could try to get it working for android (I don't have an iphone, so I'd start with what I can test on) and then let you know any learnings I find? But, I also understand if you want to keep the code private :)

That's awesome to hear, let me know if I can help in that effort at all :). From what I've briefly looked into, React-Native seems pretty sweet!

pearcemerritt
Posts: 5
Joined: Sun May 19, 2019 12:13 pm

Re: github repo?

Post by pearcemerritt » Wed Jul 24, 2019 4:21 pm

Actually, on closer reading, it sounds like it could be kinda tough if you have dependent libs that are closed source and need to be recompiled for android. Unless... you wrote jazz-midi without any deps like JZZ.js :D

Post Reply