joeyy-watts / SpotifyWLED

A script to listen to the currently playing track on your Spotify account and forward it to a WLED (https://github.com/Aircoookie/WLED) LED matrix with support for animations.
2 stars 0 forks source link

Animate WLED cover #11

Closed joeyy-watts closed 10 months ago

joeyy-watts commented 1 year ago

Add animations to WLED cover to add a more lively feel by varying brightness.

Would also be neat to implement patterns.

Examples:

Implementation: WLED has live data mode, UDP API, so maybe use something along that line to send brightness info. Or if possible, send a command to WLED to have brightness animation on WLED side.

joeyy-watts commented 1 year ago

https://github.com/topics/beat-detection

joeyy-watts commented 1 year ago

Image state is lost once displayed; not possible to handle brightness variation on WLED side (at least not without some usermod): https://github.com/Aircoookie/WLED/issues/3160#issuecomment-1496495564

Really dumb workaround right now is to just repeatedly send the entire pixel art JSON with varying brightness.

other ref: https://wled.discourse.group/t/use-strip-show-in-a-loop/7990/3 https://github.com/hughc/wled-pixelart-client

joeyy-watts commented 1 year ago

Another possible workaround is do use overlapping segments and overlay, and play some (custom) animation over the image instead.

But not sure how to do that yet (or if it's even possible): https://kno.wled.ge/features/effects/#effect-overlay

joeyy-watts commented 1 year ago

GIFs might be an option: https://github.com/Aircoookie/WLED/issues/3061

joeyy-watts commented 1 year ago

Most likely option, use UDP realtime. Refer to: https://github.com/scottlawsonbc/audio-reactive-led-strip

joeyy-watts commented 1 year ago

Now in progress in https://github.com/joeyy-watts/SpotifyWLED/tree/feature/artnet

solution: use ArtNet instead

joeyy-watts commented 1 year ago

Spotify API provides audio feature. Very useful for generating track-unique animations:

https://developer.spotify.com/documentation/web-api/reference/get-several-audio-features

joeyy-watts commented 10 months ago

Will close this one, with new animations planned in other issues.