glsl-decibels
v1.0.0
Published
Convert values to and from decibels
Downloads
36
Maintainers
Readme
glsl-decibels
Convert values to and from decibels.
Usage
varying float value;
#pragma glslify: toGain = require('glsl-decibels/to-gain')
#pragma glslify: fromGain = require('glsl-decibels/from-gain')
void main() {
float dbValue = fromGain(value);
float gainValue = toGain(dbValue);
}
Related
- audiojs/decibels — js decibels converter