Sound Bytes

A coding competition


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

Channel Surfing in the Apocalypse

by Grothe

Listen

Enjoy, but not loudly.

Program.cs


namespace e{class m{static void Main(){using(var b=new System.IO.BinaryWriter(System.Console.OpenStandardOutput())){for(int t=0;t<246000;t++)b.Write((ushort)(t/4100%5==0?t*t*t:t*t));}}}}

Language

C# (console)

Golf Score

186

Parameters

Sample Rate: 8200 Hz
Sample Size: 16 bits
Channels: 1 (mono)
Encoding: unsigned-integer

Commands

Run

dotnet run

Spectrogram

Spectrogram