sono-toolkit

Sono Toolkit

A toolkit to help with sonorisation computations for Node.js.

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-toolkit
  • Various calculators
  • Fully typed
  • Focus on high performance
  • High test coverage
  • Executable for generating applications quickly

Available here

For now, you can only compute limitation threshold for some limiter types. More functions are planned to be implemented.

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 dB

Available limiter types are :

  • dBu
  • T.Racks DS2/4
  • Behringer DCX 2496
import {
computeCompressorAttack
} from 'sono-toolkit'

const attack = computeCompressorAttack(90);
console.log(attack)
// Outputs 12 in ms
import {
computeCompressorRelease
} from 'sono-toolkit'

const release = computeCompressorRelease(90);
console.log(release)
// Outputs 354 in ms

To run the test suite, first install the dependencies:

npm install

Then run npm test:

npm run test

Eloi Lafargue - github

MIT