I seem to have triggered "infinite sample playback" when I stuck the ball in a corner and the audio crashed. One experience I've had with this kind of large sample playback (in SuperCollider) is that by dynamically reducing the volume, it creates an interesting textured sound [1].
Of course for every project using Tone.js I would like to mention one of my project glicol.js which is in active development [2]. It has better performance but needs more use case to find what's needed in the API.
I see some videos which suggest that the developer actually set up the map and the physics such that specific songs get played, although I think there is some trickery to simplify it.
At the moment I'm working on a subproject which is generating the audio sounds for various bumping events, having found musicpy/sf2_loader a quick way to generate samples.
Feature request: if changing a setting added a parameter to the URL (?count=XX&speed=YY), one could save a link to a config one likes and store it as a bookmark.
1. The music stops when the computer screen locks, or turns off, or if I swipe to a different workspace/desktop. Can you make it so that it continues to play music even with display turned off. Just a note that I'm using this on Firefox on a macOS, if that matters.
2. Can you please allow users to save/export/download a configuration (number and positions of circles, number of bouncing spheres), so that they can later upload the same configuration to get their favorite setup back.
I feel like we're getting to the point where we're combining the knowledge of geometry, music, art, maths, optics, biology etc. and we're going to be recreating some of the interconnected aspects of the natural world through the digital realm.
Once we do this, I think we're unlocking the possibility of a symbiosis with silicone-based life, where our discoveries work to lighten the path through the void of the unknown.
It's billiard-like and makes complex patterns over time that might sound coherent and interesting in various audio mappings. Runs best in Edge
One feature that I miss in many generative music experiments is the ability to export the generated MIDI clip. Could be a different target audience, not sure, but being able to export and re-use a pattern adds a lot of appeal.
An example that I love to show is this poly rhythm generator: generatorpoly.ozieblowski.dev
A bit off-topic. Does browser MIDI implementation allow syncing across tabs with MIDI clock? It would be interesting to develop an open way to sync all these fun organic generators.
It was made with LiveStage(? -- and be prepared if you google that) from TotallyHip Software, as part of a promotion for them.
Reminds me of the 'polyrhythm' genre of videos on youtube (eg. LucidRhythms)
One fun thing to do is load the canvas up with a bunch of balls really close to each other then click the yin and yang icon which causes them to change state when struck.
Adding some kind of gravity might be fun.
"Trapping the balls", has never been so much fun.
Fantastic - thanks.
Any chance you are going to share the source code?
There are other plugins for this, each with its own personality. For example Bitwig's Ricochet is a totally different take on the same idea, where they managed to make it usable for more rhythmic purposes: https://www.youtube.com/watch?v=WFvIYkTGRzA