diff --git a/README.md b/README.md index a539c21..21f0d72 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,9 @@ Support me on patreon: https://www.patreon.com/kusti8 A **cross-platform** driver in Python for the NZXT Hue+. Supports **all functionality** except FPS, CPU, and GPU lighting. -![Fixed](https://github.com/kusti8/hue-plus/raw/master/fixed.png) +![Custom](https://github.com/kusti8/hue-plus/raw/master/custom.png) ![Windows](https://github.com/kusti8/hue-plus/raw/master/windows.png) +![Profile](https://github.com/kusti8/hue-plus/raw/master/profile.png) ## Install ### Windows There is always an easy exe installer available here: diff --git a/custom.png b/custom.png new file mode 100644 index 0000000..6993d41 Binary files /dev/null and b/custom.png differ diff --git a/hue_plus/hue.py b/hue_plus/hue.py index ab7fd84..928eebe 100755 --- a/hue_plus/hue.py +++ b/hue_plus/hue.py @@ -263,7 +263,10 @@ def audio_level(ser, gui, channel, colors, tolerance, smooth): value = int(math.sqrt(summ / 1470.0) / 10) amps.append(value - delta) summ = 0 - tarW=float(amps[0]*1.0/delta/100) + if delta == 0: + tarW=0.0 + else: + tarW=float(amps[0]*1.0/delta/100) s.append(tarW) if len(s) >= smooth: out = sum(s)/len(s) diff --git a/output.wav b/output.wav new file mode 100644 index 0000000..a15c7d2 Binary files /dev/null and b/output.wav differ diff --git a/profile.png b/profile.png new file mode 100644 index 0000000..68129b9 Binary files /dev/null and b/profile.png differ