aboutsummaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'client.py')
-rw-r--r--client.py1
1 files changed, 1 insertions, 0 deletions
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: