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
anyone got a sample?
'Music' from /dev/urandom
41–50 of 58 posts
Re: 'Music' from /dev/urandom
#42Earlier quoted context omitted.
It was an excellent share you although I don't quite think "turning off CSS" would be my preferred defense. You can paste to an intermediate area to be sure you didn't catch something hidden from whichever site you don't trust (which allows users to inline arbitrary HTML elements with arbitrary styles). This is a habit one already might be in if they want to avoid being tracked from clicking on, say, Google search re…
If you try to copy a search result, it turns into a Google url that redirects to the result. On iOS this doesn't happen for some reason.
Re: 'Music' from /dev/urandom
#43Earlier quoted context omitted.
It's incorrect to assume that a shell script that uses tools like xxd and awk is distro-specific. Almost every distribution ships the GNU coreutils and other GNU base tools. It's going to work on basically every distribution. What makes distributions unique is their package manager, release and security philosophy, amount of cruft, etc.
Even the same distro line but different versions may have significant issues. This is why every build on top of Linux (e.g. Android) calls out a particular kernel version. Even a particular version for the build machine . Because things like command line tools differ over time. Versionology is a whole universe of hurt on Linux.
Re: 'Music' from /dev/urandom
#44Here 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
#45Here 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
cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i Re: 'Music' from /dev/urandom
#46Here 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
Here's Ryukyu (Okinawa) Japanese music scale cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i
Re: 'Music' from /dev/urandom
#47Earlier quoted context omitted.
Here's Ryukyu (Okinawa) Japanese music scale cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i
Unfortunately markdown formatting has broken your code. I can make a guess based on where the italics starts and ends, but you might want to indent that code.
Re: 'Music' from /dev/urandom
#48Is there a way to make it sounds more pleasant? The sine wave is a bit harsh...
awk 'function wl() {
rate=64000;
return (rate/160)*(0.87055^(int(rand()*10)))};
BEGIN {
srand();
wla=wl();
while(1) {
wlb=wla;
wla=wl();
if (wla==wlb)
{wla*=2;};
d=(rand()*10+5)*rate/4;
a=b=0; c=128;
ca=40/wla; cb=20/wlb;
de=rate/10; di=0;
for (i=0;iwla)
{a=0; ca*=-1};
if (b>wlb)
{b=0; cb*=-1};
if (di>de)
{di=0; ca*=0.9; cb*=0.9};
printf("%c",c)};
c=int(c);
while(c!=128) {
c
[1]: https://www.reddit.com/r/coding/comments/48zvn4/bash_one_lin...Re: 'Music' from /dev/urandom
#49Is... is that blinking text at the bottom?
Re: 'Music' from /dev/urandom
#50This is wrong. See http://www.2uo.de/myths-about-urandom/
(The part about /dev/urandom not blocking is right though)
Edit: changed http://security.stackexchange.com/questions/3936/is-a-rand-f... to the current link, since the current link is more to the point.