Spring-mass sonification

I stumbled on an interesting way to generate audio in Touch. The main idea is to displace a group of strings held together in a 1d spring-mass system. The difference between a string’s current position and rest position gets turned into a waveform which is oscillated at audio rates.

This example includes the spring system and a way to select notes for each string (which can produce chords). Mouse velocity is used to displace the strings.

By changing some parameters of the spring system, you can get different kinds of envelopes which sound like plucks, bowed instruments, or something else entirely. The main ones to play with are the impulse, anchor, and drag forces.

I’ve made this into a repo as well:
[url]https://github.com/kamindustries/Spring-Mass-Sonification[/url]


Spring-Mass-Sonification.toe (45.3 KB)

This is right cool!

I found it to be a bit hard to trigger with my mouse, but I found manipulating the circle sops radius parameter I could make more string pluck together at once.

Thanks a lot for sharing, a very cool example.