Hi!

On Tue, Apr 06, 2004 at 09:45:27AM +0200, F. Schlosser wrote:
> I'm desperately trying to get access to parameters of inserted 
> stereoeffects in a running artsd (using artsshell stereoeffect insert). 
> How can I adjust an equalizer, set a filename for wavecapture etc. Is 
> there a possibility to do this or would it make sense to extend 
> artscontrol for purposes like these? (btw I tried arts 1.1.4 and a CVS 
> version from June 2002).

There currently is no possibility to change the parameters of running
effects you inserted using artsshell. The closest you could get (if you
want to use a command-line tool like artsshell) is preparing a custom
effect using artsbuilder, which already contains the parameters you
desire.

For instance you can use artsbuilder -> Channels -> Implement Interface
-> Arts::StereoEffect (I am backtranslating from the german GUI here, so
menu items may be called slightly different), add a lowpass filter at
6000Hz, File -> Save. Then you can insert this effect with artsshell.

If you're using artscontrol, the way to go are environments. There you
can use effect racks to get a GUI-editable selection of effects. And
mixers are also useful.


Speaking form a code perspective, what aRts doesn't build on is an
introspective, serializable model of how the flow graph looks like. This
means that although its possible to use introspection to see what is the
cutoff frequency of a filter, and change it, if you have an MCOP Object
Reference to it, its for instance impossible to get an MCOP Object
Reference to the filter in a generic way, after it has been inserted by
artsshell.

If the only concern are effect stacks, it would be possible to fix this
by providing a new effect stack interface which allows you to retrieve
MCOP Object references of the objects contained in the effect stack.

For a more general solution Arts::Environments are designed as an extension
on top of the model aRts uses, but since their creation never made their
way into the core; so they are not used everywhere (for instance not by
artsshell). Part of the reason for this is that I was still toying around
with them when I still spent more time working on aRts (currently, I only
spend very little time working on aRts), and I am not sure that the
interfaces are good as they are now. If they would be in the core, the same
binary-compatibility-for-a-long-period-of-time restrictions as for the rest
of the core would apply.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, [EMAIL PROTECTED] (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         

_______________________________________________
Arts mailing list
[EMAIL PROTECTED]
http://space.twc.de/cgi-bin/mailman/listinfo/arts

Reply via email to