audiomotion-analyzer 4.4.0 → 4.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -140,6 +140,7 @@ options = {<br>
140
140
  &emsp;&emsp;[gradient](#gradient-string): **'classic'**,<br>
141
141
  &emsp;&emsp;[gradientLeft](#gradientleft-string): *undefined*,<br>
142
142
  &emsp;&emsp;[gradientRight](#gradientright-string): *undefined*,<br>
143
+ &emsp;&emsp;[gravity](#gravity-number): **1**,<br>
143
144
  &emsp;&emsp;[height](#height-number): *undefined*,<br>
144
145
  &emsp;&emsp;[ledBars](#ledbars-boolean): **false**,<br>
145
146
  &emsp;&emsp;[linearAmplitude](#linearamplitude-boolean): **false**,<br>
@@ -498,6 +499,16 @@ For **_dual-combined_** channel layout or [`radial`](#radial-boolean) spectrum,
498
499
 
499
500
  See also [`gradient`](#gradient-string) and [`splitGradient`](#splitgradient-boolean).
500
501
 
502
+ ### `gravity` *number*
503
+
504
+ *Available since v4.5.0*
505
+
506
+ Controls the acceleration of [peaks](#showpeaks-boolean) falling down.
507
+
508
+ It must be a number greater than zero. Invalid values are ignored and no error is thrown.
509
+
510
+ Defaults to **1**.
511
+
501
512
  ### `height` *number*
502
513
  ### `width` *number*
503
514
 
@@ -607,7 +618,7 @@ Defaults to **false**.
607
618
 
608
619
  *Available since v4.0.0*
609
620
 
610
- Performs an *n*th-root to amplify low energy values when using linear scale for the amplitude.
621
+ Performs an *n*th-root operation to amplify low energy values when using linear scale for the amplitude.
611
622
 
612
623
  It should be a number >= 1, while 1 means no boosting. Only effective when [`linearAmplitude`](#linearamplitude-boolean) is set to *true*.
613
624
 
@@ -906,9 +917,11 @@ and setting `showBgColor` to ***true*** will make the "unlit" LEDs visible inste
906
917
 
907
918
  ### `showPeaks` *boolean*
908
919
 
909
- *true* to show amplitude peaks. Defaults to **true**.
920
+ *true* to show amplitude peaks.
910
921
 
911
- See also [`peakLine`](#peakline-boolean).
922
+ See also [`gravity`](#gravity-number) and [`peakLine`](#peakline-boolean).
923
+
924
+ Defaults to **true**.
912
925
 
913
926
  ### `showScaleX` *boolean*
914
927