SynthLib

F# Project - Sound Synthesis

View the Project on GitHub PaulMarisOUMary/ALGOSUP_2022_Project_3_B

Module Envelope

Envelope

module Envelope

Attributes: none

Methods:

Types: none

apply


method apply (attackTime:float) (decayTime:float) (releaseTime:float) (sustainAmplitude:float) (wave: float list)

Return a Wave with an envelope applied to it.

Example Usage:

Wave.MakeNote Wave.Sine 1. Note.A 4
    |> Envelope.apply 0.1 0.06 0.1 0.8

Parameters:

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.

Type : list<float>

Returns:

Return a wave. Type : list<float> | (wave)