Thank you for your donation!


Instruction Guide 128x64 OLED with Song Status and Spectrum Display on Raspberry Pi
(01-13-2022, 07:14 AM)adrii Wrote: Hi MRamone

Great that the install went well!

The spectrum is calculated by the cava program, and the bar height is automatically adapted to audio levels using the cava autosens option

   https://github.com/karlstav/cava/blob/ma...les/config

Cava determines an optimal bar height quickly when audio first starts, and then adapts slowly to audio level changes after that.

The audio levels of the copy of the audio that is passed to cava to calculate the spectrum depend on where, during the audio processing by Moode, the copy is made by Moode. They probably also depend on the audio source (MPD, spotify, etc).

On my system the volume control does not change the bar height, but it sounds like on your system the volume change occurs before the audio copy is made, which affects the bar height in the short term. However, the bar height should adapt over a few minutes to the audio level change to a more appropriate display.

Adrian.

Thank you again, that makes sense, will observe better the behavior of the bars. If it autocorrects in a few minutes, that's good enough!w
Reply
Arduinos work but I'd think this project would be a perfect excuse to use the new Raspberry Pi Pico. Smile

Regards,
Kent
Reply
If not already familiar with programming microcontrollers then I'd suggest tackling a single functionality first to get one's feet wet.  Armed with that experience, grow the project. I suggested trying a Pico but of course there are many other possibilities. Arduinos are ubiquitous; the Teensy lineup isn't as well known, perhaps, but extremely capable; yada yada yada.


As for starting a separate thread, I'd suggest instead creating and working in a github repo. The issues log is a better place to track ideas than a series of posts to a forum thread.

Just my 2 cents worth.

Regards,
Kent
Reply
Hi Ghoostknight

mpd_oled communicates with the display using the linux /dev/i2c-1, etc, devices. So long as the USB I2C device driver sets up a similiar device node, and provides a fast enough i2c bus, then it seems reasonable that it could work with mpd_oled.

Adrian.
Reply


Forum Jump: