sandarshsridhar / wiz-spotify-connected

A service to dance 😉 your Wiz lights to playing Spotify music.
MIT License
43 stars 8 forks source link

feat(auto-mode): add auto mode to automatically switch mode for every song #30

Closed sandarshsridhar closed 1 year ago

sandarshsridhar commented 1 year ago

Release 1.1.0 (9/2/23)

  1. An all-new feature, auto mode is added to determine the mode for each song smartly using danceability, energy, and tempo of the song specified in Spotify's audio-track-features API.
  2. Made the auto mode the default mode to run the app.
  3. Added calm mode to allow users to force run the app in the previous default mode (changes lights 2x slower than the song's tempo, and alternates the brightness to only 50% of the loudness).
  4. The party mode continues to function the same way as before.
  5. Fixed a bug where while playing certain songs, the app encountered (node:9435) TimeoutOverflowWarning: Infinity does not fit into a 32-bit signed integer. The timeout duration was set to 1 error.
  6. Moved the dance input calculations to a separate class i.e., DanceEngine.
  7. Reduced the max delay between Spotify Playback checks to 3 seconds as default (also, this is now configurable from the .env file).
  8. Other minor bugs.