[ecasound] CVS changes - parameter descriptions

New Message Reply Date view Thread view Subject view Author view Other groups

Subject: [ecasound] CVS changes - parameter descriptions
From: Kai Vehmanen (k@eca.cx)
Date: Thu Dec 07 2000 - 08:58:38 EET


Couple of important changes in the CVS-tree. First of all,
I've implemented a new scheme for describing individual effect/chainop
parameters. The new system is pretty close to the port hints of LADSPA
plugins. This similarity allows ecasound to easily map LADSPA plugins
to ecasound effects. Here's the whole definition:

--cut--
  /**
   * Structure describing one operator parameter.
   */
  struct PARAM_DESCRIPTION {
    /**
     * A reasonable default value.
     */
    parameter_type default_value;

    /**
     * Parameter description.
     */
    string description;

    /**
     * Is parameter bounded above?
     */
    bool bounded_above;

    /**
     * If 'bounded_above', contains the bound value.
     */
    parameter_type upper_bound;

    /**
     * Is parameter bounded below?
     */
    bool bounded_below;

    /**
     * If 'bounded_below', contains the bound value.
     */
    parameter_type lower_bound;

    /**
     * Whether parameter should be treated as a boolean toggle?
     * Parameter value of less than or equal to zero (x <= 0) should
     * be considered `off' or `false,' and value above zero (x > 0)
     * should be considered `on' or `true.
     */
    bool toggled;

    /**
     * Parameter value is best represented as an integer.
     */
    bool integer;

    /**
     * Value range from lower_bound to upper_bound is best
     * represented on a logarithmic scale.
     */
    bool logarithmic;

    /**
     * Parameter value can change during operation. This
     * makes it possible to have separate parameters for
     * storing processing results.
     */
    bool output;
  };
--cut--

I've already added LADSPA support for the above. So when you load LADSPA
plugins to ecawave, you'll see the correct lower and upper bounds. I've
also taken advantage of the 'output' field. Ecasound's own -ev (normalize)
and -ezf (find/calculate dc-offset) chainops now output their results as
parameters.

And yup, ecawave and qtecasound are once again up-to-date. Not much
has happened to them during the last few moths, but luckily they benefit
directly from the recent improvements done in libecasound side (double
buffering, preset params, EIAM improvements, LADSPA plugin fixes, etc).

-- 
 . http://www.eca.cx ... [ audio software for linux ] /\ . 
 . http://www.eca.cx/aivastus ... [ aivastus net radio ] /\ . 

-- To unsubscribe send message 'unsubscribe' in the body of the message to <ecasound-list-request@wakkanet.fi>.


New Message Reply Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Dec 07 2000 - 08:45:51 EET