hypnosound 1.5.3 → 1.5.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hypnosound",
3
3
  "type": "module",
4
- "version": "1.5.3",
4
+ "version": "1.5.5",
5
5
  "description": "A small library for analyzing audio",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -175,8 +175,8 @@ export function makeCalculateStats(historySize = 500) {
175
175
 
176
176
  let mean = sum / queue.length
177
177
  let variance = sumOfSquares / queue.length - mean * mean
178
- let min = minQueue.length ? minQueue[0] : Infinity
179
- let max = maxQueue.length ? maxQueue[0] : -Infinity
178
+ let min = minQueue.length ? minQueue[0] : 0
179
+ let max = maxQueue.length ? maxQueue[0] : 0
180
180
  let median = calculateMedian()
181
181
  let mad = calculateMAD(median)
182
182