| Node.js is used as a development framework for Cordova applications, but is not embedded in the compiled app. Bindings must be written in native code (Java for Android, Objective C for iOS), so I am not sure if your C++ code can be reused.
https://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html
https://cordova.apache.org/docs/en/latest/guide/platforms/ios/plugin.html
https://cordova.apache.org/docs/en/latest/guide/platforms/android/plugin.html
For some reason, I overlooked your csound.node project, and wasn’t even aware of the NW.js project, which is rather promising. I am currently using the Node.js addon for Csound (https://github.com/nwhetsell/csound-api) without GUI, but will try csound.node.
If we had Cordova plugins (with an API aligned to a Node.js addon — either yours or nwhetsell’s one), we could really do cross-platform development. The same JavaScript code could be deployed on desktop (Linux, OSX and Windows) and mobile (Android, iOS and even WP).
Regards,
Pierre
> Le 19 déc. 2015 à 22:50, Michael Gogins a écrit :
>
> It's a cross platform framework for phone apps and such that uses
> HTML5 instead of native UI toolkits. See
> https://en.wikipedia.org/wiki/Apache_Cordova. It should be possible to
> adapt csound.node, which I have already developed, to link with
> Android Csound or iOS Csound to provide native Csound in a Cordova
> app.
>
> Regards,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sat, Dec 19, 2015 at 4:43 PM, Victor Lazzarini
> wrote:
>> What is cordova?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 19 Dec 2015, at 19:35, Pierre Clisson <000000068f8539ad-dmarc-request@LISTSERV.HEANET.IE> wrote:
>>>
>>> Dear Santa,
>>>
>>> I have been very good this year!
>>> For Christmas, I would like Cordova plugins for iOS and Android.
>>>
>>> The following API functions would need to be implemented:
>>> - csoundCreate()
>>> - csoundDestroy()
>>> - csoundCompileOrc()
>>> - csoundStart()
>>> - csoundStop()
>>> - csoundReadScore()
>>> - csoundSetOption()
>>> As well as a method for running csound in a background thread.
>>>
>>> I’ll be waiting for you with cookies and milk.
>>>
>>> Sincerely,
>>> |