minor default config changes
This commit is contained in:
parent
afd2fcb9af
commit
6d460a7059
@ -12,12 +12,12 @@ framerate = 60
|
|||||||
# 'autosens' will attempt to decrease sensitivity if the bars peak. 1 = on, 0 = off
|
# '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)
|
# 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
|
# 'overshoot' allows bars to overshoot (in % of terminal height) without initiating autosens. DEPRECATED as of 0.6.0
|
||||||
autosens = 1
|
; autosens = 1
|
||||||
; overshoot = 20
|
; overshoot = 20
|
||||||
|
|
||||||
# Manual sensitivity in %. Autosens must be turned off for this to take effect.
|
# Manual sensitivity in %. Autosens must be turned off for this to take effect.
|
||||||
# 200 means double height. Accepts only non-negative values.
|
# 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).
|
# The number of bars (0-200). 0 sets it to auto (fill up console).
|
||||||
# Bars' width and space between bars in number of characters.
|
# 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.
|
# Percentage value for integral smoothing. Takes values from 0 - 100.
|
||||||
# Higher values means smoother, but less precise. 0 to disable.
|
# 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.
|
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
|
||||||
monstercat = 1
|
; monstercat = 1
|
||||||
; waves = 3;
|
; waves = 3;
|
||||||
|
|
||||||
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
|
# Set gravity percentage for "drop off". Higher values means bars will drop faster.
|
||||||
|
|||||||
@ -82,8 +82,8 @@ def visualizer_cava_thread():
|
|||||||
def visualizer_2(color, amp_strength):
|
def visualizer_2(color, amp_strength):
|
||||||
global volume_amp
|
global volume_amp
|
||||||
# amp_strength in percentage
|
# amp_strength in percentage
|
||||||
amp_factor = (amp_strength*((volume_amp/500)-1)+1)
|
amp_factor = amp_strength*((volume_amp/500)-1)+1
|
||||||
#print(amp_factor, color, volume_amp)
|
#print(amp_factor, color,[c*amp_factor for c in color], volume_amp)
|
||||||
return [c*amp_factor for c in color]
|
return [c*amp_factor for c in color]
|
||||||
|
|
||||||
def vibrant(r,g,b):
|
def vibrant(r,g,b):
|
||||||
@ -115,8 +115,8 @@ def ambient_light_thread():
|
|||||||
active_color = '\033[0;32;40m'
|
active_color = '\033[0;32;40m'
|
||||||
else:
|
else:
|
||||||
active_color = '\033[0;31;40m'
|
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)
|
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)))
|
send(rgb_to_hex(int(r_out*brighness),int(g_out*brighness),int(b_out*brighness)))
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user