
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
spessasynth_lib
Advanced tools
MIDI and SoundFont2/DLS library for the browsers with no compromises
A powerful SF2/DLS/MIDI JavaScript library for the browsers.
This is a WebAudioAPI wrapper for the spessasynth_core library.
It allows you to:
The next major update (4.0) will include many breaking changes. The documentation will be updated when the update releases. The migration guide will be published here.
SpessaSynth Project index
TIP: Looking for a bare JS version that works without WebAudioAPI? Try spessasynth_core!
npm install --save spessasynth_lib
import { Synthetizer } from "spessasynth_lib"
const sfont = await (await fetch("soundfont.sf3")).arrayBuffer();
const ctx = new AudioContext();
// make sure you copied the worklet processor!
await ctx.audioWorklet.addModule("./worklet_processor.min.js");
const synth = new Synthetizer(ctx.destination, sfont);
document.getElementById("button").onclick = async () =>
{
await ctx.resume();
synth.programChange(0, 48); // strings ensemble
synth.noteOn(0, 52, 127);
}
Audio may sometimes sound distorted in Chromium-based browsers: Chrome, Edge, Brave, etc. due to a Chromium Bug. I can't do anything about it, only hope that it gets fixed. Please consider voting for it on the bug tracker to get it fixed!
Copyright © 2025 Spessasus Licensed under the Apache-2.0 License.
SoundFont® is a registered trademark of Creative Technology Ltd.
FAQs
MIDI and SoundFont2/DLS library for the browsers with no compromises
The npm package spessasynth_lib receives a total of 187 weekly downloads. As such, spessasynth_lib popularity was classified as not popular.
We found that spessasynth_lib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.