This is supposed to be a game where a spacecraft is navigated through a musical space [1]. Genres are organized in a 3D space according to genre similarity [2]. Discovering new music genres and becomes a journey through space. Spotify APIs are used for obtaining playlists and song properties. As Spotifys API does not allow querying by genre, all "The Sound of " playlists are obtained from the fantastic Every Noise at Once project.
To get started playing, and developing, start vite using:
cd spotiflight
npm i
npm start
To generate the JSON file used by SolarSystemScene, run:
npm run generate-dataThis will execute the Python scripts in scripts/ and produce data/positioned_genres_final.json, which the app imports for visualization.
- Gameplay and Graphics: Three.js is used as a 3D engine. Rendering the spaceship will be taken care of later on. For now, there's only a camera that is controlled through 3D space. Genres should be represented as illuminated spheres in different colors. When the camera is facing a genre sphere and is nearby, the Spotify Web Playback SDK should be used to obtain the first song of the playlist of the respective genre.
- Genre similarity: maybe use song attributes to generate genre vectors or use nlp to identify and organize similar genres close to one another