Skip to content

Commit 23a277e

Browse files
committed
(Docs): added more info about certain fields
Signed-off-by: Abhijay Jain <[email protected]>
1 parent 2c8d234 commit 23a277e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/monosynth.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,21 @@ class MonoSynth extends AudioVoice {
7777
* @for p5.MonoSynth
7878
*/
7979
/**
80-
* used 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-
* It is used in conjunction with the attack, sustain, and release fields/functions to set the full envelope of the synthesizer.
80+
* allow 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.
8383
* @property {Number} decay
8484
* @for p5.MonoSynth
8585
*/
8686
/**
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.
8790
* @property {Number} sustain
8891
* @for p5.MonoSynth
8992
*/
9093
/**
94+
* allows the user to access and change the release time of the envelope.
9195
* @property {Number} release
9296
* @for p5.MonoSynth
9397
*/

0 commit comments

Comments
 (0)