News for hackers. Stuff that matters.
Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by p01 on Monday October 19, 2020 @08:21AM (#24825660)
Glad you like it :)

-- p01, author of MONOSPACE

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by raydev on Monday October 19, 2020 @11:21AM (#24827144)
What is the source for the music?
Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by p01 on Tuesday October 20, 2020 @05:43AM (#24835482)
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

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by khazhoux on Monday October 19, 2020 @03:02PM (#24829678)
Was blown away by the technical and artistic merit. Well done!!