MIDIPhysics is an experiment in connecting audio and virtual physical bodies via the lightweight physics engine Matter.js and the classic MIDI interface that browsers now support via the relatively new Web MIDI API.
MIDI-input (from any MIDI-source) can be mapped so that physical bodies are spawned in a virtual sandbox. When they collide with each other and the world they then trigger a MIDI-out signal that can be caught by a browser or sent to an external instrument.
A simple GUI for controlling the shape, density, size and gravity, amongst other things, allow for near infinite variation. Via MIDI CC these parameters can also be changed in real time via a MIDI-kontroller which enable a more performative use case.