Bouncing square video, Rust edition
It is made with WGPU for rendering and Rodio for audio, some other libraries like Winit for windowing and glam for math are used too.
Credits to Quasar098 for the original Midi Playground
Run it from the command line: midi-bounce.exe midi_file.mid audio_file.ogg
Also, you can use a file with a .bin extension instead of .mid if you want, it is a binary file that is a bunch of 32-bit floating point numbers placed consecutively that each represent a time where the square should bounce in seconds, also they must be in order from least to greatest.
To convert a midi file, use midiconverter.py, it will open a file dialog to open the midi file and save the bin file. (This is unnecessary now because you can use .mid directly)
- R: reset
- G: re-generate
- Download Rust
- Clone this repository
- Use
cargo runorcargo buildorcargo build --release
If you use this in a video you should put a link to this repository in the description