Skip to content

Commit c17425a

Browse files
authored
Merge pull request #714 from Nitesh639/update
documented getVolume()
2 parents 02768d7 + c0904c5 commit c17425a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/soundfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,14 @@ class SoundFile {
745745
}
746746
}
747747

748+
/**
749+
* It returns the volume of a sound, which is a measure
750+
* of how loud or quiet the sound is.
751+
*
752+
* @method getVolume
753+
* @for p5.SoundFile
754+
* @return {Number}
755+
*/
748756
getVolume() {
749757
return this.output.gain.value;
750758
}

0 commit comments

Comments
 (0)