Struct ModulationEnvelope
- Namespace
- SpessaSharp.Synthesizer.Engine.Voice
- Assembly
- SpessaSharp.dll
Calculates the modulation envelope for the given voice
public struct ModulationEnvelope
- Inherited Members
Constructors
ModulationEnvelope()
Calculates the modulation envelope for the given voice
public ModulationEnvelope()
Methods
Init(Voice)
Initializes the modulation envelope.
public void Init(Voice voice)
Parameters
voiceVoiceThe voice this envelope belongs to.
Process(Voice, float)
Calculates the current modulation envelope value for the given time and voice.
public float Process(Voice voice, float currentTime)
Parameters
Returns
- float
Mod env value, from 0 to 1.
StartRelease(Voice)
Starts the release phase in the envelope.
public void StartRelease(Voice voice)
Parameters
voiceVoiceThe voice this envelope belongs to.