From 6d460a705982ab2d1095ca781848bcc25427831f Mon Sep 17 00:00:00 2001 From: Lucca Ketterer Date: Tue, 27 Apr 2021 15:44:14 +0200 Subject: [PATCH] minor default config changes --- client/cava.conf | 8 ++++---- client/client.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/cava.conf b/client/cava.conf index 677c8cf..89b5a6b 100644 --- a/client/cava.conf +++ b/client/cava.conf @@ -12,12 +12,12 @@ framerate = 60 # 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off # new as of 0.6.0 autosens of low values (dynamic range) # 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0 -autosens = 1 +; autosens = 1 ; overshoot = 20 # Manual sensitivity in %. Autosens must be turned off for this to take effect. # 200 means double height. Accepts only non-negative values. -; sensitivity = 100 +sensitivity = 1000 # The number of bars (0-200). 0 sets it to auto (fill up console). # Bars' width and space between bars in number of characters. @@ -112,10 +112,10 @@ foreground = red # Percentage value for integral smoothing. Takes values from 0 - 100. # Higher values means smoother, but less precise. 0 to disable. -integral = 20 +integral = 100 # Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. -monstercat = 1 +; monstercat = 1 ; waves = 3; # Set gravity percentage for "drop off". Higher values means bars will drop faster. diff --git a/client/client.py b/client/client.py index 764df21..a350d73 100755 --- a/client/client.py +++ b/client/client.py @@ -82,8 +82,8 @@ def visualizer_cava_thread(): def visualizer_2(color, amp_strength): global volume_amp # amp_strength in percentage - amp_factor = (amp_strength*((volume_amp/500)-1)+1) - #print(amp_factor, color, volume_amp) + amp_factor = amp_strength*((volume_amp/500)-1)+1 + #print(amp_factor, color,[c*amp_factor for c in color], volume_amp) return [c*amp_factor for c in color] def vibrant(r,g,b): @@ -115,8 +115,8 @@ def ambient_light_thread(): active_color = '\033[0;32;40m' else: active_color = '\033[0;31;40m' - print(active_color, round(r),round(g),round(b), '\033[0;37;40m') r_out,g_out,b_out = visualizer_2((r,g,b), 0.4) + print(active_color, round(r),round(g),round(b), round(r_out),round(g_out),round(b_out), '\033[0;37;40m') send(rgb_to_hex(int(r_out*brighness),int(g_out*brighness),int(b_out*brighness))) time.sleep(0.01)