sono-toolkit
v1.1.0
Published
A toolkit to help with sonorisation calculations.
Readme
Sono Toolkit
A toolkit to help with sonorisation computations for Node.js.
Table of content
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js. Node.js 20 or higher is required.
npm install sono-toolkitFeatures
- Various calculators
- Fully typed
- Focus on high performance
- High test coverage
- Executable for generating applications quickly
Documentation
Available here
Examples
For now, you can only compute limitation threshold for some limiter types. More functions are planned to be implemented.
Limiter threshold calculator :
import {
ChargeTypeEnum,
computeLimiterThreshold,
LimiterThresholdParams,
LimiterTypeEnum
} from 'sono-toolkit'
const params: LimiterThresholdParams = {
limiterType: LimiterTypeEnum.DBU,
chargeType: ChargeTypeEnum.CLOSE,
hpPower: 1600,
impedance: 4,
ampPower: 2000,
ampGain: 32
}
const limiter = computeLimiterThreshold(params);
console.log(limiter)
// Outputs 4.5 in dBAvailable limiter types are :
- dBu
- T.Racks DS2/4
- Behringer DCX 2496
Compressor attack calculator :
import {
computeCompressorAttack
} from 'sono-toolkit'
const attack = computeCompressorAttack(90);
console.log(attack)
// Outputs 12 in msCompressor release calculator :
import {
computeCompressorRelease
} from 'sono-toolkit'
const release = computeCompressorRelease(90);
console.log(release)
// Outputs 354 in msTests
To run the test suite, first install the dependencies:
npm installThen run npm test:
npm run testContributors
Eloi Lafargue - github
