Skip to content

Commit 030270f

Browse files
authored
Merge pull request #731 from Abhijay007/Abhijay007/p5.MonoSynth-fields
(Docs): Updated various fields in the `p5.MonoSynth` reference
2 parents 78d0865 + a4e656b commit 030270f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/monosynth.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,21 @@ class MonoSynth extends AudioVoice {
7777
* @for p5.MonoSynth
7878
*/
7979
/**
80+
* Allows user to set the decay time of the envelope (ADSR) of the MonoSynth class.
81+
* It is a getter and setter that can be used to retrieve or change the decay time.
82+
* Used in conjunction with the attack, sustain, and release fields/functions to set the full envelope of the synthesizer.
8083
* @property {Number} decay
8184
* @for p5.MonoSynth
8285
*/
8386
/**
87+
* Allows the user to retrieve and adjust the sustain level of the envelope,
88+
* which controls the level at which the sound is sustained during the sustain phase of the envelope.
89+
* The default sustain level is set to 0.15.
8490
* @property {Number} sustain
8591
* @for p5.MonoSynth
8692
*/
8793
/**
94+
* Allows the user to access and change the release time of the envelope.
8895
* @property {Number} release
8996
* @for p5.MonoSynth
9097
*/

0 commit comments

Comments
 (0)