Prototyping 3 Mar 2013

From XPUB & Lens-Based wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Bash thyself!

Example

A sample pipeline with gstspectrum

Final pipeline:

./gstspectrum input.wav | \
| ./selectmaxcolumn.py \
| ./sortranges.py \
| ./compact.py \
| ./editwithsox.py $1 \
| bash

Bash

Useful things:

  • BASH counting loops
  • BASH math substitution
  • sprintf for filenames


http://vimeo.com/14969253

jpegloop

Extra

Using Python's argparse is great for making flexible command line tools.