1
0
Fork 0
mirror of https://github.com/vbatts/bitorchestra.git synced 2024-11-30 12:25:44 +00:00

initial commit

This commit is contained in:
Vincent Batts 2011-11-14 10:13:02 -05:00
commit 0ad2b60a9d
6 changed files with 44 additions and 0 deletions

11
Makefile Normal file
View file

@ -0,0 +1,11 @@
FILES := $(basename $(wildcard *.c))
all: $(FILES)
%: %.c
$(CC) -o $@ $<
clean:
rm -rf $(FILES) *.o *~

4
README Normal file
View file

@ -0,0 +1,4 @@
to play these, just compile and run like:
$> ./f1 | aplay

7
f1.c Normal file
View file

@ -0,0 +1,7 @@
int main() {
int t;
for (t = 0;;t++) {
putchar((t >> 6 | t | t >> (t >> 16)) * 10 + ((t >> 11) & 7));
}
}

8
f2.c Normal file
View file

@ -0,0 +1,8 @@
main() {
int t;
for (t=0;;t++) {
putchar(t*((t>>12|t>>8)&63&t>>4));
}
}

4
f3.c Normal file
View file

@ -0,0 +1,4 @@
main(int t) {
for(;;t++)
putchar(t*9&t>>4|t*5&t>>7|t*3&t/1024)-1;
}

10
f4.c Normal file
View file

@ -0,0 +1,10 @@
int main(int t) {
for (t = 0;;t++) {
int i;
i = (t>>7-(t>>15)&-t>>7-(t>>15));
if (i==0)
continue;
putchar(t>>4|t&(t>>5)/i);
}
}