'Music' from /dev/urandom
blog.robertelder.org
'Music' from /dev/urandom
1–10 of 58 posts
Re: 'Music' from /dev/urandom
#2
save you from spawning one process.Re: 'Music' from /dev/urandom
#3 cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,3,5,6,7,10,12",a,","); for (i = 0; i Re: 'Music' from /dev/urandom
#4Re: 'Music' from /dev/urandom
#5Anyone got this working on OSX afplay does not accept the same input :(
> ... | play -c 2 -r 16000 -e signed -L -b 32 -t raw -
Re: 'Music' from /dev/urandom
#6Re: 'Music' from /dev/urandom
#7Anyone got this working on OSX afplay does not accept the same input :(
cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i
1: https://www.reddit.com/r/programming/comments/48xf6k/bash_on...Re: 'Music' from /dev/urandom
#8http://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 recorded what they got working on OSX, and it sounded terrible (not how it sounds on my Ubuntu machine). I haven't tested this on a mac since I don't have one.
I was surprised that many people suggested listening to the music for pleasure or inspiration. There are a few things I could do that would probably improve the sounds quality: One is experimenting with the sampling rate of the sin wave, and another is adjusting the for loop to make sure that it ends on the end of the sine curve close to y = 0. Right now, for some notes it will just stop halfway through close to y=1, and the next note will start at y=0. I think that is the source of the 'poping' sound between notes.
Re: 'Music' from /dev/urandom
#9Here 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
Re: 'Music' from /dev/urandom
#10http://countercomplex.blogspot.fi/2011/10/algorithmic-sympho...