A small React app that shows you the track analysis and features of the song you are currently hearing in Spotify.
Inspired by kaleidosync, this project shows a very simple audio reactive 3D scene. Based on CRA with some additions to the Node server for the Spotify API handling. The 3D part comes from the ThreeJS react renderer react-three-fiber. State is managed with zustand.
- Create a new Spotify app in Spotify's dashboard.
- Add
http://localhost:8001/callbackto the Redirect URIs. - Use the Client ID and Client Secret and set them on the
.envfile. - Install dependencies running
npm installon the root directory. - Start the application
npm run start. - Go to http://localhost:8000 and log in to your Spotify account.
- Play a song and watch the analysis.
- The album cover moves faster if the song is popular.
- The song name changes to red if it's labeled as NSFW.
- The progress bar of the song also shows the sections.
- The triangles below the progress bar show the end of the fade in and the beginning of the fade out.
- The color bars show the pithces of each segment. More green is a higher value.
- The key and mode on top of the bars and the bpm and time signature on the bottom change each section.
- Each of the audio features in the spider graph go from 0 to 1.
- All the rhythms move when they start (the actualization rate is of 150ms).