From c8efa1318f4d924b86c410e576c246d1e23839fb Mon Sep 17 00:00:00 2001 From: Graham Northup Date: Mon, 23 Apr 2018 09:24:22 -0400 Subject: Minor clamping fix for amplitude display --- client.py | 1 + 1 file changed, 1 insertion(+) (limited to 'client.py') diff --git a/client.py b/client.py index 91a888b..2fcaae9 100644 --- a/client.py +++ b/client.py @@ -67,6 +67,7 @@ def lin_interp(frm, to, p): return p*to + (1-p)*frm def rgb_for_freq_amp(f, a): + a = max((min((a, 1.0)), 0.0)) pitchval = float(f - options.low_freq) / (options.high_freq - options.low_freq) if options.log_base == 0: try: -- cgit v1.2.3-70-g09d2