Hacker News new | ask | show | jobs
by p01 2063 days ago
Do you mean the source code or the inspiration ?

The main part of the source code is the last `for(...)` loop that updates the sound buffer, and draws the text.

There was not much inspiration :p I needed something simple enough to be fairly compact and sound melodic.

So I used a chord of 4 notes, played them at different speed and octaves. The lead using a sinus oscillator to get nice pure tones, a deeper sound 4x slower with a pulse oscillator to get more edgy sound, the deepest sound 16x slower with a sawtooth to get a gritty bass. Layered with the perspective scaling of the dots to get something bleeps in synch with the visuals.

Hope that answers your question