soundfont2
Version:
A SoundFont2 parser for Node.js and web browsers
10 lines (9 loc) • 375 B
TypeScript
import { SF2Chunk } from '~/chunk';
import { Modulator } from '~/types';
/**
* Get the modulators from either a `pmod` (presets) or `imod` (instruments) chunk.
*
* @param {SF2Chunk} chunk - The input chunk
* @param {string} type - The type of chunk, either 'pmod' or 'imod'
*/
export declare const getModulators: (chunk: SF2Chunk, type: "pmod" | "imod") => Modulator[];