Re: [ecasound] schedule effects

From: laurent schwartz <schwartz.laurent@email-addr-hidden>
Date: Wed Jun 03 2009 - 08:46:19 EEST

Hy Julien,

I play with the parameters you gave me and it works great with wav file.
ecasound \
 -a:1,2 -i alsahw,1,0,0
 -a:1 -ea:100 -klg:1,0,100,5,0,1,5,1,5.67,0,30.67,0,31,1\
 -a:2 -etd:250,2,2,50,50 -ea:200
-klg:1,0,100,5,0,0,18,0,18.67,1,25.67,1,26,0\
 -a:all -o alsahw,1,0,0

I put the effects in a preset effect file:
-- test.ecp --
test = -ea:100 -klg:1,0,100,5,0,1,5,1,5.67,0,30.67,0,31,1 |
-etd:250,2,2,50,50 -ea:200 -klg:1,0,100,5,0,0,18,0,18.67,1,25.67,1,26,0
-- test.ecp --

and then apply the preset to one channel:
ecasound \
 -a:1 -i ./test.wav -pf test.ecp\
 -a:all -o alsahw,1,0,0

It also works ! :)

I tried the following line to process recording input and, unfortunately, it
freezes my computer ...
ecasound \
 -a:1,2 -i alsahw,1,0,0
 -a:1 -ea:100 -klg:1,0,100,5,0,1,5,1,5.67,0,30.67,0,31,1\
 -a:2 -etd:250,2,2,50,50 -ea:200
-klg:1,0,100,5,0,0,18,0,18.67,1,25.67,1,26,0\
 -a:all -o alsahw,1,0,0

ecasound freezes also when i get input from default alsa device which is
define as follow:
-- /etc/asound.conf --
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}

pcm.pulse {
    type pulse
}

ctl.pulse {
    type pulse
}
-- /etc/asound.conf --

When i kill pulseaudio and i use alsahw,0,0,0 instead it works fine (apart
from some overrun) with the following command line:

ecasound\
 -a:1 -i alsahw,0,0,0 -pf test.ecp\
 -a:all -o alsahw,1,0,0

But i suppose overrun are normal because i'm using two audio cards in the
same session (synchronization problem).

Thanks very much for your help :)
Laurent

2009/6/3 Julien Claassen <julien@email-addr-hidden-lab.de>

> Hi Laurent!
> I can think of several ways:
> 1. Use the controller options, for example -klg:
> ecasound -i in.wav -o out.wav -etd:250,2,2,50,50
> -klg:4,0,50,5,0,0,60,0,60.67,1,70,67,1,71,0
> Change parameter 4, which I believe is mix-%, so the volume of the
> effect.
> The mix-% range for the klg to adjust should be between 0 and 50. Use five
> points in time to notate the change. Then the points in time and the value
> (scaled to 0 to 1) for the volume.
> 0s 0 mix-% value = 0
> 60s 0 mix-%
> 60.67s 1 mix-% value = 50
> 70.67s 1 mix-%
> 71s 0 mix-%
> Not very useable for all effects, because some don't have a mix
> parameter.
>
> 2. Use different tracks and work with volume:
> ecasound -a:1 -i in.wav -ea:100
> -klg:1,0,00,5,0,1,60,1,60.67,0,70.67,0,71,1 -a:2 -in.wav -etd:250,2,2,50,50
> -ea:200 -klg:1,0,100,5,0,0,60,0,60.67,1,70.67,1,71,0 -a:all -o out.wav
> I use two chains (named 1 and 2), both have the same input. One has the
> delay and one doesn't have. Now I insert a simple aplifier and just move
> the
> virtual sliders so, that normally the dry track is there and only between
> 60.67s and 70.67s the delayed track is there. It looks more cumbersome, but
> can be used for all effects. I used -ea:200 in chain 2, becuase inserting a
> delay (-etd) lowers the track volume. In my experience with these settings
> is
> roughly half the original volume.
>
> 3. You can do both of the above solution with MIDI. Only exchange the
> -klg:...
> option with all its parameters for something like:
> -km:4,0,50,1,1
> Change parameter 4, the mix-%, use range of 0 to 50, use midi-controller
> and
> midi channel one. That should be the modwheel of every keyboard. It gets
> you a
> more life feeling.
>
> There are certainly more solutions to that question. You can use ecasound
> in
> connection with python or ruby, you can start ecasound in daemon mode and
> do
> something nasty with telnet or netcat and shell scripts (bash, csh, zsh,
> whatever you like) or you could use Nama and use some of its advanced
> features. Nama, as you might have seen, is a frontend to ecasound. It has
> both
> a text interface (a bit similar to ecasound) and a graphical user
> interface.
> I hope that helps in leading you along the right path. One of them at
> least...
> Kindest regards
> Julien
> --------
> Music was my first love and it will be my last (John Miles)
>
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======
> http://www.juliencoder.de
>
>
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises
> looking to deploy the next generation of Solaris that includes the latest
> innovations from Sun and the OpenSource community. Download a copy and
> enjoy capabilities such as Networking, Storage and Virtualization.
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________
> Ecasound-list mailing list
> Ecasound-list@email-addr-hidden
> https://lists.sourceforge.net/lists/listinfo/ecasound-list
>

-- 
___________________________________________
Laurent Schwartz
Site Internet: http://guidedudanseur.free.fr
Tél: 06 82 81 25 90

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get

_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Wed Jun 3 12:15:02 2009

This archive was generated by hypermail 2.1.8 : Wed Jun 03 2009 - 12:15:02 EEST