{"by":"bambax","descendants":73,"id":40719782,"kids":[40721759,40721944,40721613,40721728,40720818,40825304,40754988,40722707,40722006,40722513,40723086,40720856,40720922,40723477,40729938,40727484,40721485,40722855,40738892,40731773,40720733,40721061,40722419,40724844,40722798,40722035,40721758,40726147,40721001,40722613,40722202,40724293,40721193,40724519,40725645,40720740,40721726,40722999,40721552,40723524,40722091,40722499,40721076],"score":306,"text":"Hello HN! Here&#x27;s Billard. It combines music and physics into a unique creative tool, as I explore various unconventional methods for generating music.<p>Most traditional music composition tools revolve around the idea of a repeatable pattern. Billard is a webapp that never repeats itself. It generates music automatically based on the collisions of balls in a 2D space. Collisions trigger notes (or chords) in a given key. One can add balls or move them (y-position is pitch); the app remembers its state between reloads; or it can be reset with the &#x27;init&#x27; button on the top left. Gravity can be adjusted in real time to change the behavior of the balls.<p>It owes a lot of inspiration to Brian Eno and Erik Satie (inventor of <i>musique d&#x27;ameublement</i>, or &quot;furniture music&quot;). Some may think the lack of pattern makes it not musical enough -- but this lets it be listened to —and watched— for a while without boredom.<p>The webapp is made using plain JavaScript. (All SVG icons were made &#x27;by hand&#x27;.) It uses Tone.js only for triggering piano samples. Beyond piano, it&#x27;s MIDI-enabled and works well at slow speed with haunting, dark synth sounds.<p>Hope you like it!","time":1718729145,"title":"Show HN: Billard – Generate music from ball collisions in 2D space","type":"story","url":"https://billard.medusis.com/"}