Nanananananananana.. Pat Man!
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    playpublic

    play.js - play sound files from node.js to your speakers, simple as cake and kid approved!

    Installing npm (node package manager)

     curl http://npmjs.org/install.sh | sh
    

    Installing play.js

     npm install play
    

    USAGE

      var play = require('play');
    
      // play with a callback
      play.sound('./wavs/sfx/intro.wav', function(){
    
        // these are all "fire and forget", no callback
        play.sound('./wavs/sfx/alarm.wav');
        play.sound('./wavs/sfx/crinkle.wav');
        play.sound('./wavs/sfx/flush.wav');
        play.sound('./wavs/sfx/ding.wav');
        
      });
    

    DEMO

     cd examples
     node demo.js
    

    drum party, now go to JSONloops => http://github.com/marak/JSONloops

    Requirements

    Mac OS and node.js

    Keywords

    none

    install

    npm i play

    Downloadsweekly downloads

    285

    version

    0.5.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar