News for hackers. Stuff that matters.
Re:Music with AWK by srean on Sunday March 06, 2011 @07:56PM (#2295551)
Here is Paul Hudak's library for creating music in Haskell

http://haskell.org/haskellwiki/Haskore and here are some samples that you can listen to http://users.informatik.uni-halle.de/~thielema/Music/HAL2/mi...

He also discusses it in chapter 20 of his book. I was quite surprised to know that he is currently on medical leave due to a rare form of leukemia. Surprised, because leukemia has been on the radar on HN (as well as on personal front) lately.

I know it is selection bias, but it still feels weird when coincidences like that happen in clusters.

Re:Music with AWK by burgerbrain on Sunday March 06, 2011 @04:44PM (#2295104)
You'll want to pipe it into `aplay -r 64000`. At least my copy of aplay incorrectly guesses the rate so you have to tell it.
Re:Music with AWK by krakensden on Sunday March 06, 2011 @05:44PM (#2295251)
Thank you- that sounds much more pleasant.
Re:Music with AWK by frytaz on Sunday March 06, 2011 @05:22PM (#2295203)
How can i make it work on osx?
Re:Music with AWK by jesvs on Sunday March 06, 2011 @07:08PM (#2295459)
pipe it into SoX

awk [...] | sox -c 1 -b 16 -r 44100 -s -t raw - -d

Re:Music with AWK by jackowayed on Sunday March 06, 2011 @11:08PM (#2295950)
And you can install sox from homebrew. (I, at least, didn't have it installed by default)
Re:Music with AWK by keenerd on Monday March 07, 2011 @10:31PM (#2299710)
Hey, it is HN again. I would have about four times as many points if I ever remembered to post any of my stuff here. :-)

Thanks for the feedback, will update it with regards to osx later.

Re:Music with AWK by shadowpwner on Sunday March 06, 2011 @05:25PM (#2295211)
Oh, the power and beauty of the pentatonic scale.
Re:Music with AWK by jpitz on Monday March 07, 2011 @06:54AM (#2296836)
Re:Music with AWK by acqq on Monday March 07, 2011 @04:26AM (#2296585)
Anybody knows if the faster "chirping" sounds in the background can be eliminated? If there were only "slow" chimes I think it would really be very suitable for meditation purposes.
Re:Music with AWK by keenerd on Monday March 07, 2011 @11:12PM (#2299784)
There is no faster chirping sound. I'm guessing you are using Jesvs's sox line? I was very surprised sox was able to work at all, half of the settings were wrong. Try

awk [...] | sox -c 1 -b 8 -r 64k -e unsigned -t raw - -d

instead. No clicking/popping with that.

Re:Music with AWK by acqq on Saturday March 12, 2011 @10:14AM (#2316854)
I've just listened to the mp3 linked from the page (http://kmkeen.com/tmp/awkbient.mp3) and I've heard the sounds I've described. I hear it like "(loud:) dong (quieter:) brrr-brrr-bbrrr (loud:) dong (quieter:) brrr-brrr-brrr (loud:) dong" The brr-brr sounds are the unpleasant ones. I hear them also when listening to wav made by lame --decode of mp3.
Re:Music with AWK by vitorbal on Sunday March 06, 2011 @09:44PM (#2295781)
This is a little (a lot) off-topic but I liked the way he conveys his contact details in that image to the left, heh.
Re:Music with AWK by abecedarius on Monday March 07, 2011 @03:07AM (#2296451)
You don't need to end all those lines with backslashes, BTW.
Re:Music with AWK by Vvick727 on Sunday March 06, 2011 @06:05PM (#2295302)
haha, reminds me of the social network.