https://github.com/audiojs/decibels
:loudspeaker: Convert values to and from decibels.
https://github.com/audiojs/decibels
Last synced: 8 months ago
JSON representation
:loudspeaker: Convert values to and from decibels.
- Host: GitHub
- URL: https://github.com/audiojs/decibels
- Owner: audiojs
- License: mit
- Created: 2015-07-04T05:39:11.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T04:08:11.000Z (about 6 years ago)
- Last Synced: 2025-09-26T11:27:43.190Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 13
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
decibels
===
Convert values to and from decibels.
## Install [via npm](https://www.npmjs.com/package/decibels)
```js
$ npm install decibels
```
## API
```js
var gainToDecibels = require('decibels/from-gain')
var decibelsToGain = require('decibels/to-gain')
```
### `gainToDecibels(gain)`
### `decibelsToGain(db)`
## License
MIT