Page 1 of 1

github repo?

Posted: Thu Jul 11, 2019 8:05 am
by pearcemerritt
Is there a public github repo for jazz-midi?

Re: github repo?

Posted: Thu Jul 11, 2019 10:29 am
by sema
Not at the moment.
Do you have some ideas of its improvement?

Re: github repo?

Posted: Fri Jul 19, 2019 10:56 pm
by pearcemerritt
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?

Re: github repo?

Posted: Mon Jul 22, 2019 8:00 am
by sema
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 :)

Re: github repo?

Posted: Wed Jul 24, 2019 2:52 pm
by pearcemerritt
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!

Re: github repo?

Posted: Wed Jul 24, 2019 4:21 pm
by pearcemerritt
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