Sound Bytes

A coding competition


Project maintained by coding-competitions Hosted on GitHub Pages — Theme by mattgraham

Experimental

by pswg

Listen

Modified, de-golfed version of Viznut’s original 64-byte original.

This is an example submission written in C.

Scoring Note: 122 bytes code + 4 bytes flags = 126 total score

main.c


#include <stdio.h>
main(t) {
	for(t = 0; t < 240000; t++)
		putchar(t * (((t >> 12) | (t >> 8)) & (63 & (t >> 4))));
}

Language

C

Golf Score

126

Parameters

Sample Rate: 8000 Hz
Sample Size: 8 bits
Channels: 1 (mono)
Encoding: unsigned-integer

Commands

Build

gcc ./main.c -o a.out

Run

./a.out

Spectrogram

Spectrogram