Skip to content

Instantly share code, notes, and snippets.

@jlank
Created May 6, 2012 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlank/2607109 to your computer and use it in GitHub Desktop.
Save jlank/2607109 to your computer and use it in GitHub Desktop.
stdin issues
#!/usr/bin/env node
var Audio = require('./lib/audio'),
argv = require('optimist')
.options('i', { alias: 'input', })
.options('o', { alias: 'output', })
.argv
;
var a = new Audio();
var cb = function (err, res) {
if (err) {
console.error(err);
}
else {
res.pipe(process.stdout);
}
};
console.log('hi');
process.stdin.resume();
a.slowDown({ speed: .5}, process.stdin, cb);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment