mirror of
https://github.com/vbatts/bitorchestra.git
synced 2024-11-27 02:55:41 +00:00
initial commit
This commit is contained in:
commit
0ad2b60a9d
6 changed files with 44 additions and 0 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
FILES := $(basename $(wildcard *.c))
|
||||
|
||||
all: $(FILES)
|
||||
|
||||
%: %.c
|
||||
$(CC) -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -rf $(FILES) *.o *~
|
||||
|
4
README
Normal file
4
README
Normal file
|
@ -0,0 +1,4 @@
|
|||
to play these, just compile and run like:
|
||||
|
||||
$> ./f1 | aplay
|
||||
|
7
f1.c
Normal file
7
f1.c
Normal 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
8
f2.c
Normal 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
4
f3.c
Normal 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
10
f4.c
Normal 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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue