Enum ladspa::DefaultValue [-] [+] [src]

pub enum DefaultValue {
    Minimum,
    Low,
    Middle,
    High,
    Maximum,
    Value0,
    Value1,
    Value100,
    Value440,
}

The default values that a control port may hold. For audio ports, use DefaultControlValue::None.

Variants

Minimum

Equal to the lower_bound of the Port.

Low

For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower_bound) * 0.75 + log(upper_bound) * 0.25). Otherwise, this should be (lower_bound * 0.75 + upper_bound * 0.25).

Middle

For ports with CONTROL_HINT_LOGARITHMIC, this should be exp(log(lower_bound) * 0.5 + log(upper_bound) * 0.5). Otherwise, this should be (lower_bound * 0.5 + upper_bound * 0.5).

High

For ports with LADSPA_HINT_LOGARITHMIC, this should be exp(log(lower_bound) * 0.25 + log(upper_bound) * 0.75). Otherwise, this should be (lower_bound * 0.25 + upper_bound * 0.75).

Maximum

Equal to the upper_bound of the Port.

Value0

Equal to 0 or false for toggled values.

Value1

Equal to 1 or true for toggled values.

Value100

Equal to 100.

Value440

Equal to 440, concert A. This may be off by a few Hz if the host is using an alternate tuning.

Trait Implementations

Derived Implementations

impl Clone for DefaultValue

fn clone(&self) -> DefaultValue

fn clone_from(&mut self, source: &Self)

impl Copy for DefaultValue