| Ah, thanks for the update! Was hoping we could figure out a simple
flag change to get better performance. Not so simple. :P I guess
we'll have to do some kind of profiling if that's possible. Maybe
turn off messages and other things from Csound too.
On Wed, Dec 4, 2013 at 3:45 PM, Edward Costello
wrote:
> I have been compiling with O2 now, I tried O3 but that fails which the
> emscripten people say is to be expected. Yes if removing the export-all
> stuff will make performance improvements I think this is definitely the way
> to go.
> At the moment I stopped trying to make an embind file because they have
> turned off compiling to asm.js with embind due to compilation errors, also
> they are not allowing the passing of raw pointers into methods that are not
> pointers to classes. What I have now is just an object oriented style C file
> that declares a CsoundObj struct and a number of functions that take the
> struct as the first argument and wrap a few of the csoundAPIs functions,
> these CsoundObj functions are then wrapped into a javascript class. This
> will need to be improved on a good bit, perhaps making it similar to the C++
> or Obj-C csound classes would be best.
> Victor, I tried to get Trapped running myself but there are a few things
> that aren’t working properly, one I can remember off the top of my head is
> that Gen5 wasn’t working. I haven’t had a chance to investigate what might
> be wrong yet though.
>
> --
> Edward Costello
>
> On Wednesday 4 December 2013 at 21:11, Victor Lazzarini wrote:
>
> I don’t see a problem integrating the code into the Csound repo.
> And yes, it is very good work. It must have been a hard job to get it to
> build correctly.
>
> One thing I noticed when trying to run Trapped in the earlier version Ed had
> given me was that it would fail with lots of memory warnings.
>
> Victor
> On 4 Dec 2013, at 19:50, Steven Yi wrote:
>
> Hi Ed,
>
> This is awesome. :) I think even at this point it demonstrates a lot.
> If they can run 3D game engines with Emscripten, I'd like to think
> there's a lot of optimization we can do to improve things.
>
> Question: I don't remember where we last left it, but did you compile
> the libs with -O0 still or move to -O2? I'm thinking we might try
> bumping things to -O2 and removing the export-all stuff since the only
> JS functions we'd really need to concern ourselves with are the ones
> in the Embind file.
>
> Also, would everyone be alright if we integrated this work into the
> main CS6 repo? We did have to make a few changes to Csound code to
> allow for compiling without Pthreads. My thought when I first did
> some of the changes was that it would be generic, but I'm thinking now
> to make it compiler dependent (i.e. ifdef(EMSCRIPTEN) instead of
> ifdef(HAVE_PTHREADS)).
>
> Thanks!
> steven
>
> On Wed, Dec 4, 2013 at 6:22 AM, Edward Costello
> wrote:
>
> Yeah, I think its lucky it works at all let alone on mobile devices. I also
> think there is probably a fair amount of testing and optimisation that can
> be done but due to the nature of audio processing it may be difficult to get
> it working reliably with javascript. Well its still early days in terms of
> this kind of technology, perhaps asm.js will catch on and improve over time,
> even web audio is in it’s infancy and I don’t think the ScriptProcessorNode
> (which gives direct access to samples in javascript) was meant to be abused
> in this way.
>
> --
> Edward Costello
>
> On Wednesday 4 December 2013 at 10:06, Victor Lazzarini wrote:
>
> I tried on Android using Chrome. I get sound but it’s full of dropouts. My
> impression is that with the current browser technology,
> javascript still lags far behind native speeds. New engines will improve
> this.
> I think it’s worth trying it, though.
>
> Victor
> On 3 Dec 2013, at 20:41, Edward Costello wrote:
>
> Its great that its working on linux I haven’t checked it working on anything
> other than Mavericks.
>
> I have noticed that especially on Firefox the latency for the widgets is
> quite noticeable. This I think is browser specific as the latency on Safari
> is barely noticeable at all.
>
> The widgets are specified using standard html elements, in the widget demo
> the ‘range’ widget is used to produce a slider. When a widgets value is
> changed it calls a setControlChannelValue method for the csound object, this
> is declared in the CsoundObj.js file.
> --
> Edward Costello
>
> On Tuesday 3 December 2013 at 21:06, Rory Walsh wrote:
>
> I'd say it is more a step forwards and to the side ;) I think Victor's
> pnacl/chrome experiments are still a little ahead of Google's own
> developments!
>
> On 3 December 2013 20:01, wrote:
>
>
> Quoting Rory Walsh :
>
> btw, it rans straight out of the box on my Linux machine. No need to
> update anything.
>
>
>
> We too, on Linux/Seamonkey. Agree that the latency is noticeable but....
> Not having nor wanting Chrome this sees a step forward. How are the
> widgets specified?
>
> ==John ff
>
>
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Sponsored by Intel(R) XDK
> Develop, test and display web and hybrid apps with a single code base.
> Download it for free now!
> http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |