diff options
author | Graham Northup <grissess@nexusg.org> | 2018-04-23 09:24:22 -0400 |
---|---|---|
committer | Graham Northup <grissess@nexusg.org> | 2018-04-23 09:24:22 -0400 |
commit | c8efa1318f4d924b86c410e576c246d1e23839fb (patch) | |
tree | c882864b037a690cf4bb0b04f462c971fd5d51ab /client.py | |
parent | 7654ad67b46bb7e072cbe4a1f3dfb9c115bfeded (diff) |
Minor clamping fix for amplitude display
Diffstat (limited to 'client.py')
-rw-r--r-- | client.py | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: |