/**
 * Description: This is a SoundFont2 parser.
 *
 * @package     midi-Synth
 * @category    module js
 * @author      Mrtenz <https://github.com/Mrtenz/soundfont2>
 * @copyright   soundfont2
 * @license     GPL-2.0-or-later
 */

const SF_VERSION_LENGTH = 4;
const SF_PRESET_HEADER_SIZE = 38;
const SF_BAG_SIZE = 4;
const SF_MODULATOR_SIZE = 10;
const SF_GENERATOR_SIZE = 4;
const SF_INSTRUMENT_HEADER_SIZE = 22;
const SF_SAMPLE_HEADER_SIZE = 46;

const DEFAULT_SAMPLE_RATE = 22050;

// export type SF_INFO_CHUNKS =
//   | 'ifil'
//   | 'isng'
//   | 'INAM'
//   | 'irom'
//   | 'iver'
//   | 'ICRD'
//   | 'IENG'
//   | 'IPRD'
//   | 'ICOP'
//   | 'ICMT'
//   | 'ISFT';
