Hacker Newsnew | past | comments | ask | show | jobs | submit | wookoouk's commentslogin

My universities firewall blocked the link :(


The first think I asked myself was 'How do they make money!' there are no ads, I found this on Quora and it made a lot of sense: https://www.quora.com/How-does-unsplash-com-make-money


Anyone got this working on OSX afplay does not accept the same input :(


Another solution: [1]

    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; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | sox -traw -r44100 -b16 -e unsigned-integer - -tcoreaudio
1: https://www.reddit.com/r/programming/comments/48xf6k/bash_on...


Heads up, that is incredibly loud.


I did, install sox and use:

> ... | play -c 2 -r 16000 -e signed -L -b 32 -t raw -


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: