# soundfont2-esm

> Fork of [soundfont2](https://github.com/Mrtenz/soundfont2) by Maarten Zuidhoorn, modernized with ESM output.

A SoundFont2 parser written in TypeScript. Works in Node.js and modern web browsers.

## Installation

```bash
npm install soundfont2-esm
```

## Usage

```js
import { SoundFont2 } from "soundfont2-esm";

const buffer = new Uint8Array(/* ... */);
const soundFont = new SoundFont2(buffer);

console.log(soundFont.metaData);
console.log(soundFont.presets);
console.log(soundFont.instruments);
console.log(soundFont.samples);
```

## License

MIT - see [LICENSE](LICENSE)
