forked from trav/lintunes
v0.41.0: visualizer sync, fade sliders, laser look controls, custom highlight
Sync: decoding runs ahead of the speakers — by up to ~0.8 s after a GUI stall, when buffers arrive in a burst — and the visualizer drew the newest audio. It now keeps timestamped history and draws what the player says is playing, plus a per-machine Sync delay (config.json) for latency Qt can't see, like Bluetooth. Every style has one Fade slider (0 = off); bars now leave fading steps. Laser: afterimage time, line width down to 1 px, glow on/off, tip dot on/off and size (a resting beam always shows its dot), and an oscilloscope dot grid under the beam. Visualizer sliders run the full window width. Highlight: click a swatch for a full color picker; the color picked replaces that slot (right-click restores it).
This commit is contained in:
+11
-3
@@ -8,18 +8,26 @@ from PyQt6.QtCore import QObject, pyqtSignal
|
||||
DEFAULTS = {
|
||||
"ui_scale": "medium", # small | medium | large
|
||||
"highlight": "blue", # see theme.HIGHLIGHT_COLORS
|
||||
"highlight_palette": {}, # slot name -> "#rrggbb" the user picked
|
||||
"now_playing_font": None, # None=prefer Century Gothic, ""=use app
|
||||
# default, "Family"=use app
|
||||
"volume": 0.8, # logical 0..1 master output volume
|
||||
"visualizer_mode": "on", # on (color) | dim (gray) | off — click cycle
|
||||
"visualizer_style": "bars", # bars | radial | laser (visualizer_styles)
|
||||
# The styles' tunables — ranges in visualizer_styles.LIMITS.
|
||||
"visualizer_ghost_fade": 1.0, # seconds a radial dot's trail takes to fade
|
||||
"visualizer_radial_fade": True, # radial dots leave fading trails
|
||||
# Fade times in seconds, 0 = off: how long what a bar or dot left
|
||||
# behind, or the laser's past sweeps, take to fade into the background.
|
||||
"visualizer_bars_fade": 0.0,
|
||||
"visualizer_ghost_fade": 1.0, # the radial's
|
||||
"visualizer_laser_afterimage": 0.1,
|
||||
"visualizer_laser_width": 1.5, # pixels
|
||||
"visualizer_laser_dot": 3.0, # pixels across
|
||||
"visualizer_laser_head": True, # a dot at the moving beam's tip
|
||||
"visualizer_laser_glow": True, # the haze/scatter bloom
|
||||
"visualizer_laser_grid": False, # an oscilloscope's dot graticule
|
||||
"visualizer_radial_spokes": 120, # frequency bands around the circle
|
||||
"visualizer_radial_levels": 20, # volume steps along each spoke
|
||||
"visualizer_radial_normalize": True, # even out bass vs treble
|
||||
"visualizer_laser_fade": True, # afterimage of the last few frames
|
||||
"visualizer_laser_distance": 3.5, # metres, mirror → screen center
|
||||
"visualizer_laser_pitch": 0, # degrees the screen is turned
|
||||
"visualizer_laser_yaw": 0,
|
||||
|
||||
Reference in New Issue
Block a user