flute
add ♬♩♩♬♩ to your pipelines!
Last updated 6 years ago by gaving .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install flute 
SYNC missed versions from official npm registry.

build status

Flute

Bored of silent pipelines? Want to hear when somethings working?

Meet flute.

Screencast

Here's a screencast.

Install

npm install flute -g

♬♩♩♬♩ flute ♬♩♬♩♩♬
Usage: flute [arg]

Options:
-t, --track    use specified track
-l, --library  use tracks from config ~/.flute.yml
-s, --seek     seek to hh:mm:ss (used with -t; requires mplayer)

Configuration

Flute passed with no arguments plays a rubbish default flute sound. However, this can be changed to a list of tracks by specifying them in a config file with the following steps:-

  • Create a ~/.flute.yml file

  • Populate it with the absolute path of your files ('tracks:' at the top is important):-

      tracks:
        - ~/Music/Lana Del Rey/Born to Die/06 National Anthem.m4a
        - ~/Music/Compilations/Final Fantasy  VII/1-07 Hurry!.m4a
        - ~/Music/Compilations/Final Fantasy  VII/4-08 Hurry Faster!.m4a
    

Pass the -l argument to flute and it will pick one of these at random. Optionally, pass -t with an argument file location to play that certain track.

Examples

Inject flute into your pipeline wherever you would in place of cat:-

 pv -L 5k ~/Desktop/eI3s-dvZysU.flv | flute > /dev/null

 youtube-dl http://www.youtube.com/watch?v=azOWjmfUqVw -o - | flute > harris.flv

 dd if=/dev/urandom | pv -L 10M | flute -l > /dev/null

 flute -t yeah.mp3 -s 1:40 | while true; do ( seq 0 100 | sort -R | spark | lolcat -a ); done;

Current Tags

  • 1.2.0                                ...           latest (6 years ago)

3 Versions

  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (6)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |