Prototyping 3 Mar 2013: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Bash thyself! ==
[[File:Serpiente alquimica.jpg|thumb|[[wikipedia:Ouroboros]] ]]
== 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
{{vimeo|14969253}}
{{vimeo|14969253}}


[[jpegloop]]
== Extra ==
Using Python's [[argparse]] is great for making flexible command line tools.
Using Python's [[argparse]] is great for making flexible command line tools.
A sample pipeline with [[gstspectrum]]

Latest revision as of 15:51, 4 March 2013

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.