/white-noise-generator

A simple white noise generator written in Go.

Primary LanguageGoGNU General Public License v2.0GPL-2.0

white-noise-generator

A simple white noise generator written in Go.

Introduction

White noise is a sound of all frequencies in the range of human hearing in equal intensity.

This generator uses random numbers of a CSPRNG to generate white noise.

Build

git clone https://github.com/jannispinter/white-noise-generator.git
cd white-noise-generator
go get && go build

Usage

You can execute the program with it's default options:

./white-noise-generator

A file named "white_noise.wav" will be written into your current working directory.

To change the default options, use these switches:

Usage of ./white-noise-generator:
  -bits=32: Sample rate
  -duration=60: Duration in seconds
  -filename="white_noise.wav": Output file name
  -rate=44100: Bitrate

See also