One Chord Requiem for virtual piano

A “one chord requiem” for virtual piano in about 100 lines of sclang.
Every time I run the program, it generates a different piece in the same style.

Basically it chooses 24 notes randomly spread over the piano keyboard and repeats that chord again and again, systematically varying individual note volumes (and after a while also timings) to generate a kind of minimal music. Code can be found here: One chord requiem

There’s a backstory to the piece, but if you’re interested you can read it in the video description.