Skip to content

FireDasher/midi-bounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Midi Bounce

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

Usage

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)

Keybinds

  • R: reset
  • G: re-generate

Building

  1. Download Rust
  2. Clone this repository
  3. Use cargo run or cargo build or cargo build --release

For content creators

If you use this in a video you should put a link to this repository in the description

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors