Struct surge_modulation::imports::AdsrEnvelope[][src]

pub struct AdsrEnvelope {
Show 14 fields pub params: AdsrParamArray<ParamRT<AdsrParam>>, pub output: f32, pub phase: f32, pub sustain: f32, pub scalestage: f32, pub idlecount: i32, pub envstate: AdsrState, pub _v_c1: f32, pub _v_c1_delayed: f32, pub _discharge: f32, pub time_unit: TimeUnitHandle, pub tables: TablesHandle, pub srunit: SampleRateHandle, pub enabled: bool,
}

Fields

params: AdsrParamArray<ParamRT<AdsrParam>>output: f32phase: f32sustain: f32scalestage: f32idlecount: i32envstate: AdsrState_v_c1: f32_v_c1_delayed: f32_discharge: f32time_unit: TimeUnitHandletables: TablesHandlesrunit: SampleRateHandleenabled: bool

Implementations

| This is the “analog” mode of the | envelope. If you are unclear what it is | doing because of the SSE the algo is | pretty simple; charge up and discharge | a capacitor with a gate. charge until you | hit 1, discharge while the gate is open | floored at the Sustain; then release. | | There is, in src/headless/UnitTests.cpp in | the “Clone the Analog” section, a non-SSE | implementation of this which makes it much | easier to understand.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.