The BaseEnvelope class. Contains the shared base functionality for envelopes.
More...
|
virtual float | Generate () |
| Calculates and returns the next the envelope value. More...
|
|
virtual float | Modify (float input) |
| Multiplies the input by the envelope value. This may help simplify your code More...
|
|
|
virtual EnvelopeType | Type [get, set] |
| Gets or sets the envelope type. (AR, ADSR, etc) More...
|
|
virtual double | AttackTime [get, set] |
| Gets or sets the envelope attack time (ms). More...
|
|
virtual double | DecayTime [get, set] |
| Gets or sets the envelope decay time (ms). More...
|
|
virtual float | SustainLevel [get, set] |
| Gets or sets the envelope sustain level (0 to 1). More...
|
|
virtual double | ReleaseTime [get, set] |
| Gets or sets the envelope release time (ms). More...
|
|
virtual ModeType | Mode [get, protected set] |
| Gets or sets the envelope mode. More...
|
|
virtual bool | Legato [get, set] |
| Gets or sets a value indicating whether this envelope is legato. Envelopes are in Legato mode by default, meaning that the level does not have to reach zero before the attack phase is reentered. When legato mode is false, the envelope will take a moment to reach zero before the next attack phase (In progress) More...
|
|
virtual int | Gate [protected get, set] |
| Gets or sets the envelope gate. More...
|
|
virtual EnvelopeState | State [get, protected set] |
| Gets or sets the envelope state. More...
|
|
virtual float | CurrentSample [get, protected set] |
| Gets or sets the current sample of the envelope. More...
|
|
float | CurrentSample [get] |
| Gets the current sample of this generator. More...
|
|
float | CurrentSample [get] |
| Gets the current sample. More...
|
|
The BaseEnvelope class. Contains the shared base functionality for envelopes.
◆ BaseEnvelope()
Initializes a new instance of the BaseEnvelope class.
- Parameters
-
envelopeType | The envelope type. |
attackTime | The envelope attack time (ms). |
decayTime | The envelope decay time (ms). |
sustainLevel | The envelope sustain level (0-1). |
releaseTime | The envelope release time (ms). |
mode | The envelope mode. |
◆ Generate()
virtual float ATKSharp.Envelopes.BaseEnvelope.Generate |
( |
| ) |
|
|
virtual |
◆ Modify()
virtual float ATKSharp.Envelopes.BaseEnvelope.Modify |
( |
float |
input | ) |
|
|
virtual |
Multiplies the input by the envelope value. This may help simplify your code
- Parameters
-
- Returns
- The input signal multiplied by the envelope value.
Implements ATKSharp.Modifiers.IModifier.
◆ AttackTime
virtual double ATKSharp.Envelopes.BaseEnvelope.AttackTime |
|
getset |
Gets or sets the envelope attack time (ms).
◆ CurrentSample
virtual float ATKSharp.Envelopes.BaseEnvelope.CurrentSample |
|
getprotected set |
Gets or sets the current sample of the envelope.
◆ DecayTime
virtual double ATKSharp.Envelopes.BaseEnvelope.DecayTime |
|
getset |
Gets or sets the envelope decay time (ms).
◆ Gate
virtual int ATKSharp.Envelopes.BaseEnvelope.Gate |
|
protected getset |
Gets or sets the envelope gate.
◆ Legato
virtual bool ATKSharp.Envelopes.BaseEnvelope.Legato |
|
getset |
Gets or sets a value indicating whether this envelope is legato. Envelopes are in Legato mode by default, meaning that the level does not have to reach zero before the attack phase is reentered. When legato mode is false, the envelope will take a moment to reach zero before the next attack phase (In progress)
◆ Mode
virtual ModeType ATKSharp.Envelopes.BaseEnvelope.Mode |
|
getprotected set |
Gets or sets the envelope mode.
◆ ReleaseTime
virtual double ATKSharp.Envelopes.BaseEnvelope.ReleaseTime |
|
getset |
Gets or sets the envelope release time (ms).
◆ State
Gets or sets the envelope state.
◆ SustainLevel
virtual float ATKSharp.Envelopes.BaseEnvelope.SustainLevel |
|
getset |
Gets or sets the envelope sustain level (0 to 1).
◆ Type
Gets or sets the envelope type. (AR, ADSR, etc)
The documentation for this class was generated from the following file: