F# Project - Sound Synthesis
View the Project on GitHub PaulMarisOUMary/ALGOSUP_2022_Project_3_B
module Envelope
Attributes:
none
Methods:
Types:
none
method apply (attackTime:float) (decayTime:float) (releaseTime:float) (sustainAmplitude:float) (wave: float list)
Return a Wave with an envelope applied to it.
Wave.MakeNote Wave.Sine 1. Note.A 4
|> Envelope.apply 0.1 0.06 0.1 0.8
attackTime : mandatory
The time in seconds for the attack.
Type : float
decayTime : mandatory
The time in seconds for the decay.
Type : float
releaseTime : mandatory
The time in seconds for the release.
Type : float
sustainAmplitude : mandatory
The amplitude of the sustain.
Type : float
wave : mandatory
The wave to apply the envelope to.