crush2bits

2.0.0 • Public • Published

crush2bits

An aught-bitcrush simulator. Crush any float value to a float value in a limited range, depending on your desired bit depth. Does not actually reduce bit depth.

usage

var  crush2bits = require('crush2bits')
,    bitDepth = 8
,    crush = crush2bits(bitDepth)
;
 
function sampler(sample){
    return crush(sample) // Where sample is a float [-1, 1]
}
 

Readme

Keywords

none

Package Sidebar

Install

npm i crush2bits

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • johnnyscript