[Csnd] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces
Date | 2014-07-02 18:07 |
From | Michael Gogins |
Subject | [Csnd] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Attachments | Screenshot_2014-07-02-12-45-52.png |
I have uploaded to SourceForge a new package for Csound6 for Android at:
http://sourceforge.net/projects/csound/files/csound6/Csound6.03/Csound6.apk/download And a new archive of examples at: These files have replaced the existing files for 6.03. The only major change is here is new support for user-defined user interfaces which can be implemented in HTML5 code stored in a new <CsHtml5> element in the CSD file.
The Gogins/Drone-HTML5.csd example demonstrates how to create a user-defined interface with custom widgets, a flexible table-based layout with a style sheet, and JavaScript event handling. A screen shot of this example running on my Galaxy Tab S may be found below. This example was coded on my tablet right in the Csound6 app.
There is as yet minimal documentation and no example of using JavaScript for anything but pushing control values from the user interface to Csound control channels. It should however be possible to send score events to Csound from the HTML5 code, and even to write score generators in JavaScript. It should also be possible to read control channel values from Csound in JavaScript code.
Please note, if the CSD file does not contain a <CsHtml5> element, the behavior of the Csound6 is the same as it used to be, with pre-defined sliders, buttons, and trackpad.
I had hoped to be able to use WebGL on Android, but apparently the Android WebKit support for WebGL is not yet functional. This is sad because the "Internet" browser on both of my Android devices is quite capable of showing rather sophisticated WebGL demos. But I am hopeful that full support for WebGL in the WebKit will be coming reasonably soon to the Android operating system.
WebGL puts the entire functionality of a full-fledged, state of the art, GPU-accelerated, OpenGL-based scene graph with textures and shaders and what-all right into the browser and thus, when support is mature, right into Csound6 for Android.
It should still be possible to draw on the HTML5 canvas and much can be done in this way as well. Regards, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com |
Date | 2014-07-02 19:13 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
News item on Github? ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 2 Jul 2014, at 18:07, Michael Gogins |
Date | 2014-07-02 19:40 |
From | Dave Seidel |
Subject | Re: [Csnd] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Excellent. Thank you, Michael! On Wed, Jul 2, 2014 at 1:07 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
|
Date | 2014-07-03 15:32 |
From | Steven Yi |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
I went ahead and added a news entry: http://csound.github.io/site/news/2014/07/02/csound6_android_html5.html On Wed, Jul 2, 2014 at 2:13 PM, Victor Lazzarini |
Date | 2014-07-03 16:22 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Thanks a lot, Steven. ======================== Dr Victor Lazzarini Senior Lecturer NUI Maynooth, Ireland victor dot lazzarini at nuim dot ie On 3 Jul 2014, at 15:32, Steven Yi |
Date | 2014-07-03 16:42 |
From | Michael Gogins |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Attachments | None None |
Thanks, On Jul 3, 2014 10:33 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
I went ahead and added a news entry: |
Date | 2014-07-03 16:45 |
From | Steven Yi |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Sure thing! BTW: I think your other email is important about creating a unified API. We should draw up some plans for what we'll target. It'd be nice to have a web page + csd be able to run across all platforms, plus having a possibility to generate encapsulated apps for mobile. On Thu, Jul 3, 2014 at 11:42 AM, Michael Gogins |
Date | 2014-07-03 17:24 |
From | Michael Gogins |
Subject | Re: [Cs-dev] ANNOUNCEMENT: Csound6 for Android now supports HTML5 user interfaces |
Attachments | None None |
That's the idea. Csound via Java, JavaScript, PNaCl should have as far as possible the same API, which in turn should follow the header-only C++ API. Because callbacks can be a problem e, g, from Java to JavaScript, there should be defined levels to the API. We could add a select type polling feature when callbacks are not supported. In principle an HTML5 interface using JavaScript to call the Csound API could run with very few changes on any and all of these platforms. I've noticed the runtime performance of JavaScript had been climbing steeply and is not far behind LuaJIT now. Best, On Jul 3, 2014 11:46 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
Sure thing! BTW: I think your other email is important about creating |