Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

vu meter to match song dynamics and not current volume #10

Closed
MrGJones opened this issue Mar 23, 2017 · 3 comments
Closed

vu meter to match song dynamics and not current volume #10

MrGJones opened this issue Mar 23, 2017 · 3 comments
Assignees

Comments

@MrGJones
Copy link

is there a way to get the vu meter of the phatbeat to just match the dynamics of the song played and not the set volume? so that the leds are always lively even at low volumes?

@Gadgetoid
Copy link
Member

This is something I'm looking into, although apparently it's due to a bug in the ALSA plugin framework where volume control is being applied directly to the audio stream, inadvertently and totally replacing the stream that the VU meter is working with.

I'm planning to implement a workaround; a slow moving average, that will adjust the VU meter to match the current volume without it changing too rapidly during the quiet parts of songs.

@MrGJones
Copy link
Author

interesting idea! perhaps a slower dissolving meter that begins in the middle and grows up/down like a multi coloured kitt would be nice too

@Gadgetoid Gadgetoid self-assigned this Apr 28, 2017
@Gadgetoid
Copy link
Member

A fix for this- partially anyway- is buried within #15 and waiting to be merged. It's a vu-scale option which give you an optional upper limit against which to scale the VU intensity. This isn't sufficient for working at all volumes, and a more "correct" fix is required. I think that will come as part of the front-end Python implementations, however and may not be possible to support within the Pi VU Meter C code itself (which by virtue of being inserted into the ALSA audio chain really needs to be simple).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants