Menu

Home

Peter Hoppe

Synopsis

A commandline program that creates a waveform representation of a PCM wav file and stores that as a PNG image.

Usage

waveformgen OPTION...

    -b, --background=COLOR     background color
    -f, --foreground=COLOR     foreground color
    -h, --height=NUM           image height in pixels
    -i, --infile=PATH          path to PCM WAV file (input)
    -o, --outfile=PATH         path to PNG image file (output)
    -v, --verbose              prints some diagnostic output
    -w, --width=NUM            image width in pixels
    -?, --help                 Give this help list
        --usage                Give a short usage message
    -V, --version              Print program version

Color specifiers

Colors are in RGB space with r, g, b having possible values from 0 (zero) to
65535 (0x0000 to 0xffff) each. A color specification is a hexadecimal string
comprising three groups of four hexadecimal digits each, in the order
rrrrggggbbbb. You always need to specify four hex digits per group, including
any leading zeros. Example:

For the background color

r=0x1a2b
g=0x004d
b=0x5e00

the commandline argument is

-b 1a2b004d5e00

or

--background=1a2b004d5e00

Target environment

Mainly designed for unsupervised operation, for example as part of a cron job or called from a web service.

To build from source

Apologies, there are no GNU build system parts (makefiles, configure script etc). Will be added later.

Further information

Consult the file readme.pdf (sourceforge.net) which ships with the distribution.


Auth0 Logo