Re: [ecasound] Automated volume change

From: Luis Pablo Gasparotto <luispa8@email-addr-hidden>
Date: Sat Sep 03 2005 - 04:41:35 EEST

Pedro,

Thank you very much for your answer.

I'm looking for a easier solution because Tkeca don't use external
libraries, Tkeca build a command line string for Ecasound, so I'm
looking for a command line alternative.

Regards,

Luis Pablo

Pedro Antonio Fructuoso Merino wrote:

> Hi Luis Pablo:
> I don't know if you can do it with -km but in ecasound control
> interface guide
> <http://www.eca.cx/ecasound/Documentation/programmers_guide/html_ecidoc/eci_doc.html>
> you have an example about how you can do it. In this code use the
> chain operator -efl, but if you change it work fine. After that, I
> copy&paste the c++ code.
>
>#include <iostream>
>#include <unistd.h>
>#include <eca-control-interface.h>
>
>int main(int argc, char *argv[])
>{
> double cutoff_inc = 500.0;
>
> ECA_CONTROL_INTERFACE e;
> e.command("cs-add play_chainsetup");
> e.command("c-add 1st_chain");
> e.command("ai-add some_file.wav");
> e.command("ao-add /dev/dsp");
> e.command("cop-add -efl:100");
> e.command("cop-select 1");
> e.command("copp-select 1");
> e.command("cs-connect");
> e.command("start");
> while(1) {
> sleep(1);
> e.command("engine-status");
> if (e.last_string() != "running") break;
> e.command("get-position");
> double curpos = e.last_float();
> if (curpos > 15.0) break;
> e.command("copp-get");
> double next_cutoff = cutoff_inc + e.last_float();
> e.command_float_arg("copp-set", next_cutoff);
> }
>
> e.command("stop");
> e.command("cs-disconnect");
> e.command("cop-status");
> cerr << "Chain operator status: " << e.last_string() << endl;
>
> return(0);
>}
>
>
>
> Luis Pablo Gasparotto escribió:
>
>> Hi folks,
>>
>> I would like to know if there's some way to change, as an example,
>> the volume (-ea) parameter in a certain time position.
>>
>> Example:
>> ecasound -i:test.wav -ea:100
>> and I would like -ea:120 at the 5 seconds position.
>>
>> May I do it using -km?
>>
>> I'm curious about it because I think It would be a useful feature for
>> Tkeca.
>>
>> Thank you in advance,
>>
>> Luis Pablo
>>
>>
>>
>>
>>
>>
>> ___________________________________________________________ 1GB
>> gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del
>> mundo http://correo.yahoo.com.ar
>>
>>
>>
>> -------------------------------------------------------
>> SF.Net email is Sponsored by the Better Software Conference & EXPO
>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
>> Practices
>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
>> & QA
>> Security * Process Improvement & Measurement *
>> http://www.sqe.com/bsce5sf
>> _______________________________________________
>> Ecasound-list mailing list
>> Ecasound-list@email-addr-hidden
>> https://lists.sourceforge.net/lists/listinfo/ecasound-list
>>
>

        

        
                
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sat Sep 3 08:15:04 2005

This archive was generated by hypermail 2.1.8 : Sat Sep 03 2005 - 08:15:04 EEST