24
11
Bytebeat is a style of music one can compose by writing a simple C program that's output is piped to aplay
or /dev/dsp
.
main(t){for(;;t++)putchar(((t<<1)^((t<<1)+(t>>7)&t>>12))|t>>(4-(1^7&(t>>19)))|t>>7);}
There is a good deal of information on the bytebeat site, a javascript implementation, and more demos and example compositions in this thread.
Very simple rules : Try to write a pretty sounding composition. Most up votes wins since that's obviously subjective, although not that subjective considering the usual results.
Something like this maybe? It states that there is a correlation between our enjoyment of music and how much it can be compressed. I doubt it is reliable in any way but it is an objective winning criteria
– Aaron – 2016-07-21T13:10:28.0634Useful blog article – JiminP – 2012-01-24T06:28:58.413
Are you holding this to strict bytebeat (i.e. no buffers)? – Peter Taylor – 2012-01-24T12:43:46.720
4Why is it restricted to C? – user unknown – 2012-01-24T15:04:49.643
There isn't afaik any intrinsic reason to restrict using buffers or other languages, but usually bytebeat means that particular C loop with the output defined by a formula. I voted up Joey Adams answer even thought
rand()
is non-standard. – Jeff Burdges – 2012-01-24T15:51:53.090While I like this idea, the FAQ calls for an objective winning criteria (it's too easy to get trapped in calculations or ASCII art). Can we look for something better defined than "pretty"? – dmckee --- ex-moderator kitten – 2012-01-24T16:44:53.090
Also it should be tagged with one of [code-golf], [code-challenge], [king-of-the-hill], etc. I assume that you want [code-challenge] for this one. – dmckee --- ex-moderator kitten – 2012-01-24T16:46:55.347
Any suggestions? I donno much music theory, but melodic or harmonic might be over specified. How about "Write a bytebeat composition that doesn't sound too computer generated", not necessarily more objective, but specificity often yields objectivity in practice. I doubt you want the up votes by March 1st precedent – Jeff Burdges – 2012-01-24T19:20:40.007