Sound Bytes

A coding competition


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

New Ringtone 1

by gpersell

Listen

Sounds like an odd ringtone for a phone.

Program.cs


using System;
using System.IO;
using System.Linq;
namespace gpersell_fur_elise
{
    class Program
    {
        static void Main(string[] args)
        {
            using (var b = new BinaryWriter(Console.OpenStandardOutput()))
            {for (int t=0;t<4000*30;t++) {b.Write((byte)(t>>4&t*4));}}
        }
    }
}


Language

C# (console)

Golf Score

322

Parameters

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

Commands

Run

dotnet run

Spectrogram

Spectrogram