waveform

command
v0.0.0-...-ad7bcb1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 8 Imported by: 0

README

Usage

To install and use waveform, simply run:

$ go install gitee.com/shirdonl/goWaveForm/...

The waveform binary is now installed in your $GOPATH. It has several options available for generating waveform images:

$ waveform -h
Usage of waveform:
  -alt="": hex alternate color of output waveform image
  -bg="#FFFFFF": hex background color of output waveform image
  -fg="#000000": hex foreground color of output waveform image
  -fn="solid": function used to color output waveform image [options: fuzz, gradient, solid, stripe]
  -resolution=1: number of times audio is read and drawn per second of audio
  -sharpness=1: sharpening factor used to add curvature to a scaled image
  -x=1: scaling factor for image X-axis
  -y=1: scaling factor for image Y-axis

waveform currently supports both WAV and FLAC audio files. An audio stream must be passed on stdin, and the resulting, PNG-encoded image will be written to stdout. Any errors which occur will be written to stderr.

Documentation

Overview

Command waveform is a simple utility which reads an audio file from stdin, processes it into a waveform image using input flags, and writes a PNG image of the generated waveform to stdout.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL