diff --git a/doc/index.html b/doc/index.html index d7dcebc..5abce4d 100644 --- a/doc/index.html +++ b/doc/index.html @@ -8,7 +8,7 @@ Documentation - + @@ -64,6 +64,14 @@
#stop
+
+ #getVolume
+
+
+
+ #setVolume
+
+
#emitEvent
@@ -354,6 +362,20 @@ 80
)
+
+
+ getVolume()
+
+
+ Gets the current volume of the playback.
+ + + + + + + + + + + + + + + + +number
+ :
+ The current volume.
+
+
+
+
+
+
+
+
+ const volume = midiPlayer.getVolume();
+
+
+
+
+
+
+
+
+
+
+
+ setVolume(input)
+
+
+ Sets the current volume of the playback.
+ + + + + + + + + + + +parameter | +type | +description | + + +
---|---|---|
input |
+ + object + + | ++ |
input.volume | ++ number + + | +The new value for the volume (also known as gain). Typically, a whole number between 0 and 100 but can actually be negative, greater, or even a decimal number. + | +
midiPlayer.setVolume({ volume: 80 });
+
+
+
+
+
+
+
+
+
+