Re: [ecasound] Re: pyeca questions

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] Re: pyeca questions
From: Paul Winkler (pw_lists_AT_slinkp.com)
Date: Tue Aug 24 2004 - 01:19:42 EEST


On Wed, Jun 30, 2004 at 08:43:28AM +0300, janne halttunen wrote:
> On Tue, 29 Jun 2004 18:33:33 -0400
> Paul Winkler <pw_lists_AT_slinkp.com> wrote:
>
> > another q:
> > if a command returns a string in ecasound -c, should the same
> > command return a string to python when invoked via .command()?
> > I seem to always get None from all calls to .command().
>
> You can get the result from the .last_string method of the object.

Doesn't seem so :-(

I am logging .last_string() after EVERY command in my script
and usually there is no output. So far the only command I've tried
that actually causes last_string() to work is cs-status.
For examples, cs-get-position-samples leaves an empty last_string.

> Alternatively you could use ecacontrol module, which returns the value straight from .command method (whatever the type).
>
>
> >>> import ecacontrol
> >>> e=ecacontrol.ECA_CONTROL_INTERFACE()
> ...
> >>> e.command('cs-list')
> ['command-line-setup']

Hmm, ecacontrol seems to be pretty broken here, scripts that
run with pyeca.ECA_CONTROL_INTERFACE() will disconnect
from the engine with ecacontrol.ECA_CONTROL_INTERFACE().
Darn.

-- 

Paul Winkler http://www.slinkp.com


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Aug 24 2004 - 01:19:48 EEST