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

Equal to the lower_bound of the Port.

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).

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).

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).

Equal to the upper_bound of the Port.

Equal to 0 or false for toggled values.

Equal to 1 or true for toggled values.

Equal to 100.

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

Trait Implementations

impl Copy for DefaultValue
[src]

impl Clone for DefaultValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for DefaultValue

impl Sync for DefaultValue