[Cs-dev] Pvanal on Android
Date | 2012-10-10 13:48 |
From | "c.m.bryan" |
Subject | [Cs-dev] Pvanal on Android |
Attachments | None None |
Hi all, First of all, apologies for taking any attention away from Csound6 development! :) As I mentioned before, I'm hoping that the plugins and utilities will be integrated into the csoundandroid library in the future. In the meantime, I'm attempting to find a way to pre-process audio at maximum speed before realtime processing. It occurred to me that I could run a non-realtime instance of csound with an instrument that makes use of 'pvsfwrite' to generate the analysis file. This does work-- analysing 10 seconds of audio takes about 7. Better than realtime, but I'm wondering if it can be optimised. 1) I wonder if much time is wasted writing the (useless) audio output to disk, and whether anyone knows of a hack to get around this? 2) I wonder if there are any ndk compiler options that will speed it up? I'll run some benchmarks with different settings just for fun and let you know if I find anything. I'm not an expert on C compiler flags... yet! I'm just working out loud in case someone may be able to chime in with any advice... :) -Chris Bryan |
Date | 2012-10-10 17:26 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Pvanal on Android |
-n is an option to stop writing the main audio out to disk. On 10 Oct 2012, at 13:48, c.m.bryan wrote: > Hi all, > > First of all, apologies for taking any attention away from Csound6 development! :) > > As I mentioned before, I'm hoping that the plugins and utilities will be integrated into the csoundandroid library in the future. In the meantime, I'm attempting to find a way to pre-process audio at maximum speed before realtime processing. > > It occurred to me that I could run a non-realtime instance of csound with an instrument that makes use of 'pvsfwrite' to generate the analysis file. This does work-- analysing 10 seconds of audio takes about 7. Better than realtime, but I'm wondering if it can be optimised. > > 1) I wonder if much time is wasted writing the (useless) audio output to disk, and whether anyone knows of a hack to get around this? > 2) I wonder if there are any ndk compiler options that will speed it up? I'll run some benchmarks with different settings just for fun and let you know if I find anything. I'm not an expert on C compiler flags... yet! > > I'm just working out loud in case someone may be able to chime in with any advice... :) > > -Chris Bryan > ------------------------------------------------------------------------------ > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev_______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-10-11 11:00 |
From | "c.m.bryan" |
Subject | Re: [Cs-dev] Pvanal on Android |
Ah! RTFM, right?? Thanks-- will post benchmarks, in case anyone else is interested... -Chris On 10 October 2012 17:26, Victor Lazzarini |