Live data from Hacker News

'Music' from /dev/urandom

blog.robertelder.org

11–20 of 58 posts

Re: 'Music' from /dev/urandom

#14
post #3

Here is one with the blues scale. From time to time it grooves really nice. cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,3,5,6,7,10,12",a,","); for (i = 0; i

This sounds better than my version.

It really does! At twice the sampling rate it's pretty interesting, too.

Incidentally, this little idea rocks. It's amazing what's buried down there in Unix command-line utilities.

Re: 'Music' from /dev/urandom

#15
post #14

Earlier quoted context omitted.

This sounds better than my version.

It really does! At twice the sampling rate it's pretty interesting, too. Incidentally, this little idea rocks. It's amazing what's buried down there in Unix command-line utilities.

I received an email suggestion yesterday of a variant of this command that places it inside a function, so that you could play multiple instruments at once with function calls. I guess you could make an entire music composing utility in bash if you wanted to.

Re: 'Music' from /dev/urandom

#19

I was listening to Esbjron Svensson Trio, and then I tried this...my ears...

If you're into jazz, you can check the label Rune Grammofon; you can start bands that are easy to listen to, such as Elephant9 (just listen to Fugl Fønix and try to resist the groove), and then get into the rest (woohoo, Shining). After that, you shouldn't find these bleep-bloops that hard.

Re: 'Music' from /dev/urandom

#20

Here is a recording created by someone on reddit: http://mirror.xwl.me/bash_music_aac.mp4 The above is close to what it should sound like. Here are the reddit comment threads, some of which contain instructions for OSX: https://www.reddit.com/r/programming/comments/48xf6k/bash_on... https://www.reddit.com/r/linux/comments/48xj46/bash_one_line... https://www.reddit.com/r/coding/comments/48zvn4/bash_one_lin... Someone…

Those popping sounds give me the impression of a percussion instrument playing, which I find desirable.
Post reply on HN