React Music Player with Fragment Shader Visualization
- Music controllers to control music playback.
- Visualization controller to pick fragment shader.
- Fragment shader is affected by the music (should be configurable).
- Fragment shader is affected by volume.
- More...
An audio file is needed for the player to work. Place the audio file in assets/audio/audio.mp3
. The audio file needs to be in either mpeg
or ogg
format.
The player uses React to generate the GUI to control the music and the shaders. Rebundle the sources during development:
$ gulp watch --target src/js/shader-player.js
Since we'll be serving files from the file system we need to run a
web-server. Any server will do. For development I'm currently using
budo
, start the server with:
$ npm start
Run tests with:
$ gulp jest
Bug reports and pull requests are welcome on GitHub at https://github.com/olejrosendahl/shader-player. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The software is available as open source under the terms of the MIT License.