drawdio

command module
v0.0.0-...-2eb4db6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

README

Drawdio

Creates different styles of drawings from source audio

What it does

Reads the PCM of a wav audio file, then draws an image where the width and height is the square root of the number of samples, and each pixel is a gradient from either red to black for a negative Pulse, black for a null pulse (0), or gradient black to white for a positive pulse.

TODO

  • Define RGBA colors for low, mid, high pulse from command line (thinking comma delimmited --low 255,255,255,255 style)
  • See if I can tweak the gradient modifier to be exponential for more dramatic gradations.
  • Optional output file (if you don't want default naming)
  • investigate dealing with stereo using a stereo image (deinterlace)

Usage Example

Input

go run main.go pixelate -f data/tone-1000hz.wav

Output

tone-1000hz-SECOND_OF_GENERATION.png

Output Examples

tone-1000hz

white-noise

sweep-440hz-1320hz-10

dtmf-tones-7

drum_impact-6

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
intake
Package intake handles the reading in of the wav audio source
Package intake handles the reading in of the wav audio source
logging
Package logging ...
Package logging ...
validate
Package validate provides a central way to validate individual fields and different implementations of config
Package validate provides a central way to validate individual fields and different implementations of config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳