Getting back parameters from ecasound in the Ecasound Control Interface

View: New views
2 Messages — Rating Filter:   Alert me  

Getting back parameters from ecasound in the Ecasound Control Interface

by peter clarke-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is there any way to get back the results of audio analysis
calculations from ecasound when using the 'ecasound control
interface'?

Specifically, I'm trying to normalize some audio files within a Python
program.  The only way I can find is this inelegant multistep
approach:
1. run ecasound -ev as an OS command within the program, capture the
output, and use grep to extract the line containing the calculated
normalization parameter.
2. run ecasound -ea, again as an OS command (for convenience).

Seems cumbersome, and also risky in that the program would not work if
the output of ecasound changed and grep could not find the required
line.

Of course I can add the -ev  operator to the chain using cop-add, but
then I don't know how to get back the calculated normalization
parameter.

Peter Clarke

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Re: Getting back parameters from ecasound in the Ecasound Control Interface

by Kai Vehmanen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Sat, 22 Aug 2009, peter clarke wrote:

> Is there any way to get back the results of audio analysis
> calculations from ecasound when using the 'ecasound control
> interface'?
[...]
> Specifically, I'm trying to normalize some audio files within a Python
> program.  The only way I can find is this inelegant multistep

yep, this is possible and in fact this is how ecatools/ecanormalize.cpp is
implemented. You add "-ev", run through the file (with e.g. "run"), and
then read the second param of "-ev" which provides the result ("cop-select
1", "copp-select 2", "copp-get").

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ecasound-list mailing list
Ecasound-list@...
https://lists.sourceforge.net/lists/listinfo/ecasound-list