0.1.0 • Published 6 years ago

sloop v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago
npm install sloop

loop over a selected portion of a buffer now supports Typed Arrays

    var Sampler = require('./sloop')

    var buf = new Buffer('beepboopbaapboom')
    , start = 0 // buf index to start
    , size = 4 // size of each sample by index count (bytes, for buffers;  indecies for TAs (usually 1))
    , duration = 4 // length of the loop in the above size value
    ;
    
    sample = Sampler(buf, start, duration, size)
    
    var t = setInterval(
      function(){
      console.log(sample().toString())
    }, 333)
0.1.0

6 years ago

1.0.0

10 years ago

0.0.4

11 years ago

0.0.2

11 years ago